|
5 | 5 |
|
6 | 6 | include Clockwork
|
7 | 7 |
|
8 |
| -# Runs as 1:01 AM Pacific |
9 |
| -every(1.day, 'award:activate:active', at: '01:01') do |
10 |
| - ActivatePendingUsersWorker.perform_async |
11 |
| -end |
12 |
| - |
13 |
| -every(1.day, 'award:refresh:stale', at: '00:00') do |
14 |
| - RefreshStaleUsersWorker.perform_async |
15 |
| -end |
16 |
| - |
17 | 8 | # On the first of every month send the popular protips from the previous month.
|
18 | 9 | every(1.day, 'protip_mailer:popular_protips', if: ->(t){ t.day == 1 }) do
|
19 | 10 | if ENV['PROTIP_MAILER_POPULAR_PROTIPS']
|
|
24 | 15 | end
|
25 | 16 | end
|
26 | 17 |
|
27 |
| -every(1.day, 'cleanup:protips:associate_zombie_upvotes', at: '03:30') do |
28 |
| - CleanupProtipsAssociateZombieUpvotesJob.perform_async |
| 18 | +every(1.day, 'teams:refresh', at: '22:00') do |
| 19 | + TeamsRefreshJob.perform_async |
29 | 20 | end
|
30 | 21 |
|
31 |
| -every(1.day, 'clear_expired_sessions', at: '06:00') do |
32 |
| - ClearExpiredSessionsJob.perform_async |
| 22 | +every(1.day, 'award:refresh:stale', at: '00:00') do |
| 23 | + RefreshStaleUsersWorker.perform_async |
33 | 24 | end
|
34 | 25 |
|
35 |
| -every(1.day, 'protips:recalculate_scores', at: '03:00') do |
36 |
| - ProtipsRecalculateScoresJob.perform_async |
| 26 | +# Runs as 1:00 AM Pacific |
| 27 | +every(1.day, 'award:activate:active', at: '01:00') do |
| 28 | + ActivatePendingUsersWorker.perform_async |
| 29 | +end |
| 30 | + |
| 31 | +every(1.day, 'cleanup:protips:associate_zombie_upvotes', at: '02:00') do |
| 32 | + CleanupProtipsAssociateZombieUpvotesJob.perform_async |
37 | 33 | end
|
38 | 34 |
|
39 |
| -every(1.day, 'search:sync', at: '04:00') do |
| 35 | +every(1.day, 'search:sync', at: '03:00') do |
40 | 36 | SearchSyncJob.perform_async
|
41 | 37 | end
|
42 | 38 |
|
43 |
| -every(1.day, 'teams:refresh', at: '05:00') do |
44 |
| - TeamsRefreshJob.perform_async |
| 39 | +every(1.day, 'protips:recalculate_scores', at: '04:00') do |
| 40 | + ProtipsRecalculateScoresJob.perform_async |
| 41 | +end |
| 42 | + |
| 43 | +every(1.day, 'clear_expired_sessions', at: '05:00') do |
| 44 | + ClearExpiredSessionsJob.perform_async |
45 | 45 | end
|
46 | 46 |
|
47 | 47 | # This is tied with broken code. Probably should delete
|
48 |
| -every(1.day, 'facts:system', at: '00:00') {} |
| 48 | +# every(1.day, 'facts:system', at: '00:00') {} |
0 commit comments