Skip to content

Instantly share code, notes, and snippets.

@pushmatrix
Created October 30, 2012 07:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pushmatrix/3978821 to your computer and use it in GitHub Desktop.
Save pushmatrix/3978821 to your computer and use it in GitHub Desktop.
Sample Dashing Job
# :first_in sets how long it takes before the job is first run. In this case, it is run immediately
SCHEDULER.every '1m', :first_in => 0 do |job|
send_event('karma', { current: rand(1000) })
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment