Skip to content

Instantly share code, notes, and snippets.

@captproton
Created November 3, 2011 19:00
Show Gist options
  • Select an option

  • Save captproton/1337452 to your computer and use it in GitHub Desktop.

Select an option

Save captproton/1337452 to your computer and use it in GitHub Desktop.
attempt at clockwork and delayed_job
require 'config/boot'
require 'config/environment'
require 'delayed_job'
handler do |job|
puts "Running #{job}"
end
every(15.seconds, 'marketpoint.job') { Delayed::Job.enqueue MarketPointJob.new }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment