forked from gitcoinco/web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
crontab
47 lines (37 loc) · 4.19 KB
/
crontab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
## SERVER ADMIN STUFF
15 3 * * * /usr/bin/certbot renew --quiet --renew-hook "/bin/systemctl reload nginx"
## BACKUPS
30 1 * * * cd gitcoin/coin; bash scripts/backup.bash >> /var/log/gitcoin/backup.log 2>&1
## GITCOIN WEB3 STUFF
##TODO: Re-enable this when Gitcoin GETH URL is synced.
1 * * * * cd gitcoin/coin; bash scripts/run_management_command_if_not_already_running.bash sync_geth mainnet 0 99999999999 >> /var/log/gitcoin/sync_geth.log 2>&1
12 */12 * * * cd gitcoin/coin; bash scripts/run_management_command_if_not_already_running.bash sync_geth rinkeby 0 99999999999 >> /var/log/gitcoin/sync_geth_rinkeby.log 2>&1
## TOOLING
1 */3 * * * cd gitcoin/coin; bash scripts/run_management_command_if_not_already_running.bash get_prices >> /var/log/gitcoin/get_prices.log 2>&1
45 * * * * cd gitcoin/coin; bash scripts/run_management_command.bash refresh_bounties >> /var/log/gitcoin/refresh_bounties.log 2>&1
30 */5 * * * cd gitcoin/coin; bash scripts/run_management_command.bash refresh_bounties --remote >> /var/log/gitcoin/refresh_bounties_remote.log 2>&1
*/30 * * * * cd gitcoin/coin; bash scripts/run_management_command.bash sync_gas_prices >> /var/log/gitcoin/sync_gas_prices.log 2>&1
15 */6 * * * cd gitcoin/coin; bash scripts/run_management_command.bash sync_profiles >> /var/log/gitcoin/sync_profiles.log 2>&1
15 4 * * * cd gitcoin/coin; bash scripts/run_management_command.bash cleanup_db_space >> /var/log/gitcoin/cleanup_db_space.log 2>&1
15 5 * * * cd gitcoin/coin; bash scripts/sync_external_bounties.bash >> /var/log/gitcoin/sync_external_bounties.log 2>&1
15 6 * * * cd gitcoin/coin; bash scripts/run_management_command.bash clearsessions >> /var/log/gitcoin/clearsessions.log 2>&1
## REPORTING
1 1 1 * * cd gitcoin/coin; bash scripts/run_management_command.bash activity_report $(date --date='-1 month' +%Y/%m/%d) $(date +%Y/%m/%d) >> /var/log/gitcoin/activity_report.log 2>&1
## GITCOIN MARKETING
30 * * * * cd gitcoin/coin; bash scripts/run_management_command.bash sync_mail >> /var/log/gitcoin/sync_mail.log 2>&1
35 14 * * 1,6 cd gitcoin/coin; bash scripts/run_management_command.bash remarket_tweet >> /var/log/gitcoin/remarket_tweet.log 2>&1
35 11 * * 0,4 cd gitcoin/coin; bash scripts/run_management_command.bash remarket_tweet >> /var/log/gitcoin/remarket_tweet.log 2>&1
45 10 * * * cd gitcoin/coin; bash scripts/run_management_command.bash expiration >> /var/log/gitcoin/expiration_bounty.log 2>&1
15 10 * * * cd gitcoin/coin; bash scripts/run_management_command.bash expiration_start_work >> /var/log/gitcoin/expiration_start_work.log 2>&1
15 1 * * * cd gitcoin/coin; bash scripts/run_management_command.bash sync_keywords >> /var/log/gitcoin/sync_keywords.log 2>&1
40 */3 * * * cd gitcoin/coin; bash scripts/run_management_command_if_not_already_running.bash sync_slack >> /var/log/gitcoin/sync_slack.log 2>&1
30 1 * * * cd gitcoin/coin; bash scripts/run_management_command_if_not_already_running.bash sync_github >> /var/log/gitcoin/sync_github.log 2>&1
*/15 * * * * cd gitcoin/coin; bash scripts/run_management_command_if_not_already_running.bash get_notifications >> /var/log/gitcoin/get_notifications.log 2>&1
15 10 * * * cd gitcoin/coin; bash scripts/run_management_command_if_not_already_running.bash bounty_feedback_email >> /var/log/gitcoin/bounty_feedback_email.log 2>&1
15 11 * * * cd gitcoin/coin; bash scripts/run_management_command_if_not_already_running.bash new_bounties_email >> /var/log/gitcoin/new_bounties_email.log 2>&1
11 10 * * * cd gitcoin/coin; bash scripts/run_management_command.bash expiration_tip >> /var/log/gitcoin/expiration_tip.log 2>&1
1 10 * * 1 cd gitcoin/coin; bash scripts/run_management_command.bash assemble_leaderboards >> /var/log/gitcoin/assemble_leaderboards.log 2>&1
10 * * * * cd gitcoin/coin; bash scripts/run_management_command.bash pull_stats >> /var/log/gitcoin/pull_stats.log 2>&1
10 3 * * * cd gitcoin/coin; bash scripts/run_management_command.bash pull_github >> /var/log/gitcoin/pull_github.log 2>&1
10 * * * * cd gitcoin/coin; bash scripts/run_management_command.bash post_to_craigslist 1 >> /var/log/gitcoin/post_to_craigslist.log 2>&1