Skip to content

Instantly share code, notes, and snippets.

@terrbear
Created April 2, 2009 15:18
Show Gist options
  • Save terrbear/89246 to your computer and use it in GitHub Desktop.
Save terrbear/89246 to your computer and use it in GitHub Desktop.
#cronjob calls action this every 5 minutes or so
Jobs.ready_to_run.each do |job|
fork do
job.run
end
end
#done and done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment