Commit a2abb688 by Xuan Trung Le

Schedule Cron Jobs with the Whenever Gem

parent 8d0f1d38
......@@ -20,3 +20,5 @@
# Ignore application configuration
/config/application.yml
/public
......@@ -24,6 +24,7 @@ gem "settingslogic"
gem 'sidekiq'
gem 'rsolr'
gem 'rubyzip'
gem 'whenever', :require => false
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
......
......@@ -47,6 +47,7 @@ GEM
activemodel (>= 4.0.0)
activesupport (>= 4.0.0)
mime-types (>= 1.16)
chronic (0.10.2)
concurrent-ruby (1.0.5)
connection_pool (2.2.1)
crass (1.0.2)
......@@ -180,6 +181,8 @@ GEM
websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2)
whenever (0.9.7)
chronic (>= 0.6.3)
PLATFORMS
ruby
......@@ -202,6 +205,7 @@ DEPENDENCIES
tzinfo-data
uglifier (>= 1.3.0)
web-console (>= 3.3.0)
whenever
BUNDLED WITH
1.15.4
set :output, {:standard => 'log/cron_log.log', :error => 'log/cron_errors.log'}
env :PATH, ENV['PATH']
every 1.day do
rake 'data:insert_job', environment: :development
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment