Skip to content

Instantly share code, notes, and snippets.

@anka

anka/schedule.rb Secret

Created July 15, 2021 07:37
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 anka/b9e31880443b4a0092f9703917a696ec to your computer and use it in GitHub Desktop.
Save anka/b9e31880443b4a0092f9703917a696ec to your computer and use it in GitHub Desktop.
Example schedule to use with whenever gem
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