Skip to content

Instantly share code, notes, and snippets.

@jcrossley3
Forked from abstractj/DynamicScheduling
Created January 16, 2012 18:57
Show Gist options
  • Save jcrossley3/1622341 to your computer and use it in GitHub Desktop.
Save jcrossley3/1622341 to your computer and use it in GitHub Desktop.
DynamicScheduling
schedule = TorqueBox::Jobs::Schedule.new('MyJobClass')
scheduler.at 'Sat Jan 14 07:53:43 +0900 2009'
or
scheduler.at '0 52 15 * * ?'
or
scheduler.at '20 m'
or
TorqueBox::Jobs.at '12:34' do
whatever i want to do!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment