File tree 4 files changed +24
-2
lines changed
4 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ gem 'slim-rails'
40
40
# Postgres
41
41
gem 'pg'
42
42
43
-
43
+ # Scheduled tasks
44
+ gem 'clockwork'
44
45
45
46
# Authentication
46
47
gem 'omniauth' , '~> 1.1.0'
Original file line number Diff line number Diff line change 135
135
choice (0.1.6 )
136
136
chronic (0.10.2 )
137
137
chunky_png (1.3.1 )
138
+ clockwork (0.7.7 )
139
+ activesupport
140
+ tzinfo
138
141
codeclimate-test-reporter (0.3.0 )
139
142
simplecov (>= 0.7.1 , < 1.0.0 )
140
143
coderay (1.1.0 )
@@ -707,6 +710,7 @@ DEPENDENCIES
707
710
carrierwave-mongoid
708
711
carrierwave_backgrounder (= 0.0.8 )
709
712
chronic
713
+ clockwork
710
714
codeclimate-test-reporter
711
715
coffee-rails (~> 3.2.1 )
712
716
color
Original file line number Diff line number Diff line change 1
1
web : bundle exec puma -C ./config/puma.rb
2
- sidekiq : bundle exec sidekiq -C ./config/sidekiq.yml
2
+ sidekiq : bundle exec sidekiq -C ./config/sidekiq.yml
3
+ clock : bundle exec clockwork app/clock.rb
Original file line number Diff line number Diff line change
1
+ # IMPORTANT: Coderwall runs in the Pacific Timezone
2
+
3
+ require_relative '../config/boot'
4
+ require_relative '../config/environment'
5
+
6
+ include Clockwork
7
+
8
+ every ( 1 . day , 'award:activate:active' , at : '00:00' ) { }
9
+ every ( 1 . day , 'award:fresh:stale' , at : '00:00' ) { }
10
+ every ( 1 . day , 'cleanup:protips:associate_zombie_upvotes' , at : '00:00' ) { }
11
+ every ( 1 . day , 'clear_expired_sessions' , at : '00:00' ) { }
12
+ every ( 1 . day , 'facts:system' , at : '00:00' ) { }
13
+ every ( 1 . day , 'monitor:auto_tweets_queue' , at : '00:00' ) { }
14
+ every ( 1 . day , 'protips:recalculate_scores' , at : '00:00' ) { }
15
+ every ( 1 . day , 'search:sync' , at : '00:00' ) { }
16
+ every ( 1 . day , 'teams:refresh' , at : '00:00' ) { }
You can’t perform that action at this time.
0 commit comments