Skip to content

Instantly share code, notes, and snippets.

@letronje
Created June 4, 2013 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save letronje/5705957 to your computer and use it in GitHub Desktop.
Save letronje/5705957 to your computer and use it in GitHub Desktop.
clock_work.rb
require_relative 'config/boot'
require_relative 'config/environment'
module Clockwork
every(1.day, 'send_user_report', :at => '00:01', :tz => 'Asia/Kolkata'){
Rails.logger.debug 'triggering user report job @ one second past midnight'
CalculateUserReport.perform_async
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment