Skip to content

Instantly share code, notes, and snippets.

@jcasts
Created December 11, 2009 22:55
Show Gist options
  • Save jcasts/254586 to your computer and use it in GitHub Desktop.
Save jcasts/254586 to your computer and use it in GitHub Desktop.
every 3.hours do
runner "MyModel.some_process"
rake "my:rake:task"
command "/usr/bin/my_great_command"
end
every 1.day, :at => '4:30 am' do
runner "MyModel.task_to_run_at_four_thirty_in_the_morning"
end
every :hour do # Many shortcuts available: :hour, :day, :month, :year, :reboot
runner "SomeModel.ladeeda"
end
every :sunday, :at => '12pm' do # Use any day of the week or :weekend, :weekday
runner "Task.do_something_great"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment