-
-
Save anka/b9e31880443b4a0092f9703917a696ec to your computer and use it in GitHub Desktop.
Example schedule to use with whenever gem
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
every 1.day, at: '4:00 am' do | |
rake 'reports:generate' | |
end | |
every 1.hour do | |
runner 'DB::Cleanup.new.call' | |
end | |
every 5.minute do | |
rake 'data:process' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment