Skip to content

Commit

Permalink
Added Sample Cron Job to test Whenever Gem
Browse files Browse the repository at this point in the history
  • Loading branch information
namangupta01 committed May 11, 2018
1 parent 5f649b8 commit 84e32e0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/schedule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,11 @@
# end

# Learn more: http://github.com/javan/whenever

# Cron Job log file
set :output, "#{Dir.pwd}/log/cron_log.log"

# To simply print date into the log file for checking if cron job is working properly
every 1.minutes do
command "date -u"
end

0 comments on commit 84e32e0

Please sign in to comment.