Created
June 4, 2013 13:34
-
-
Save letronje/5705957 to your computer and use it in GitHub Desktop.
clock_work.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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