env :MAILTO, '""' 
env :PATH, ENV['PATH']

set :output, 'log/cron_log.log'

job_type :envcommand, '. ~/.profile; cd :path && RAILS_ENV=:environment :task'

# on some systems, need to source rvm before running standard rake command
job_type :rake, '. ~/.profile; cd :path && RAILS_ENV=:environment bundle exec rake :task --silent :output'

every 30.minutes do
  rake 'compute_metrics'
end

every :reboot do
  envcommand 'bundle exec bin/delayed_job restart'
end

every :day, :at => '1:30 am' do
  envcommand 'bundle exec bin/delayed_job restart'
end

every 1.hour do
  rake 'clear_null_inclusions'
end

every 5.minutes do 
  rake 'send_email_notifications'
end

# For RANDOM2015 deployment, can be removed once that's done.
every 60.minutes do
  envcommand "rake 'import_from_easychair'"
end
env :MAILTO, '""' 
env :PATH, ENV['PATH']

set :output, 'log/cron_log.log'

job_type :envcommand, '. ~/.profile; cd :path && RAILS_ENV=:environment :task'

# on some systems, need to source rvm before running standard rake command
job_type :rake, '. ~/.profile; cd :path && RAILS_ENV=:environment bundle exec rake :task --silent :output'

every 30.minutes do
  rake 'compute_metrics'
end

every :reboot do
  envcommand 'bundle exec bin/delayed_job restart'
end

every :day, :at => '1:30 am' do
  envcommand 'bundle exec bin/delayed_job restart'
end

every 1.hour do
  rake 'clear_null_inclusions'
end

every 5.minutes do 
  rake 'send_email_notifications'
end

# For RANDOM2015 deployment, can be removed once that's done.
every 10.minutes do
  envcommand "rake 'import_from_easychair'"
end
Revert "10 minutes => 60minutes"
Revert "10 minutes => 60minutes"

This reverts commit 666cfafb15be7b6f8571212517ed0ea8cf190ec7 [formerly 1c9e18bccd293e02bd8bc866073c625c8596271a] [formerly 9cfd17456dc4b208b676ae91c64ed20f38df337d] [formerly 626665c2bc7faa60b82a76cbbb4b6579ce8d3076 [formerly 26845000ae94debd87de2ead02eacf10009d916d]] [formerly 5749e759bf4e8f608e7d6138480d6639d3b0d3b1 [formerly 31ebfdfd57bd00e54e16fef50fcbcf40116b43d4] [formerly 9de5c63dc41c8c41098a762aa75c478d5f70bfca [formerly e8d64fa49afc28d009a9e0b1ace05db1f43ac50c]]] [formerly c346c7a4f4764916f89d52f9878dd1215d9ef932 [formerly dbb26e43906cee4b3afb82556f49b486389456c6] [formerly c2dbada4491840d188b65225bdb98e13cd0f7965 [formerly 8aebd5fd5b5249be6c310cdb90045c3522b84759]] [formerly 20016d3410faa00d5016d5bfebd7ca841936cdcc [formerly 5e257018bda19d4a828d8723f86ae7568d2ee011] [formerly 4bf3cdf9212f7556885ca00df8bb73e7cd9b2dc3 [formerly 4bf3cdf9212f7556885ca00df8bb73e7cd9b2dc3 [formerly fa1a073992c443552c2d0269abc991ca05ccd2db]]]]].


Former-commit-id: 0cea7df3754712f511024cfeaba3790b797c51e3 [formerly abe1261a119d8091326237dc1c0f7a35aff77b0b] [formerly 4490052dfe3ea390095e10821adbb220c616b1e9 [formerly bbb4eda73dd1f6210b87236bab0a52d69e4fce8f]] [formerly e9226edf745144f7cbf6e20ec25dc553a2a3a149 [formerly 7509784bdceccba2824bb0fa31d26c2d9ab127b5] [formerly 5394059aab5b02db7c4831acbcfda87dd28c0ef7 [formerly 5394059aab5b02db7c4831acbcfda87dd28c0ef7 [formerly 77699b19eae5192a1133fbb1ce1a4f3fee41522c]]]]
Former-commit-id: b74603a447f90c56f877696d0a498f347190e9d4 [formerly 271f2369c8849ffd92e754eefcb895f5ee6984bf] [formerly e0b9fdcb323890589b935314ff39332b07014d28 [formerly af06222667b86349bdc5130d7dafb04b7276f03f]]
Former-commit-id: 7a79e169bc6e362caf98d553c2b7f3ba77c8d723 [formerly 0740cf854410fd509b7c43392ecd0211dddf45f1]
Former-commit-id: 194851f497d7077979f98d615034741589882c01
Former-commit-id: 2c74d5ecabef6e8cb8060ed4001441b4a1012b6e