Skip to content

staggers cron start times #1034

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions scripts/crontab
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/us
15 3 * * * /usr/bin/certbot renew --quiet --renew-hook "/bin/systemctl reload nginx"

## BACKUPS
1 1 * * * cd gitcoin/coin; bash scripts/backup.bash >> /var/log/gitcoin/backup.log 2>&1
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.
Expand All @@ -13,13 +13,13 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/us

## 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
*/15 * * * * cd gitcoin/coin; bash scripts/run_management_command.bash refresh_bounties >> /var/log/gitcoin/refresh_bounties.log 2>&1
1 */5 * * * cd gitcoin/coin; bash scripts/run_management_command.bash refresh_bounties --remote >> /var/log/gitcoin/refresh_bounties_remote.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
1 */2 * * * cd gitcoin/coin; bash scripts/run_management_command.bash sync_profiles >> /var/log/gitcoin/sync_profiles.log 2>&1
1 4 * * * cd gitcoin/coin; bash scripts/run_management_command.bash cleanup_db_space >> /var/log/gitcoin/cleanup_db_space.log 2>&1
1 5 * * * cd gitcoin/coin; bash scripts/sync_external_bounties.bash >> /var/log/gitcoin/sync_external_bounties.log 2>&1
1 6 * * * cd gitcoin/coin; bash scripts/run_management_command.bash clearsessions >> /var/log/gitcoin/clearsessions.log 2>&1
15 */2 * * * 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
Expand All @@ -29,20 +29,20 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/us
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
1 10 * * * cd gitcoin/coin; bash scripts/run_management_command.bash expiration >> /var/log/gitcoin/expiration_bounty.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
1 1 * * * cd gitcoin/coin; bash scripts/run_management_command.bash sync_keywords >> /var/log/gitcoin/sync_keywords.log 2>&1
1 * * * * cd gitcoin/coin; bash scripts/run_management_command_if_not_already_running.bash sync_slack >> /var/log/gitcoin/sync_slack.log 2>&1
1 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 1 * * * cd gitcoin/coin; bash scripts/run_management_command.bash sync_keywords >> /var/log/gitcoin/sync_keywords.log 2>&1
40 * * * * 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
*/15 * * * * cd gitcoin/coin; bash scripts/run_management_command_if_not_already_running.bash slackbot_welcome >> /var/log/gitcoin/slackbot_welcome.log 2>&1


1 10 * * * cd gitcoin/coin; bash scripts/run_management_command.bash expiration_tip >> /var/log/gitcoin/expiration_tip.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
1 * * * * cd gitcoin/coin; bash scripts/run_management_command.bash post_to_craigslist 1 >> /var/log/gitcoin/post_to_craigslist.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