Skip to content

Instantly share code, notes, and snippets.

@treeder
Created July 7, 2012 05:06
Show Gist options
  • Select an option

  • Save treeder/3064835 to your computer and use it in GitHub Desktop.

Select an option

Save treeder/3064835 to your computer and use it in GitHub Desktop.
Delayed job on IronMQ Blog Post
Delayed::Worker.configure do |config|
# optional params:
# config.available_priorities = [-1,0,1,2] # Default is [0]. Please note, each new priority will speed down a bit picking job from queue
# config.queue_name = 'default' # Specify an alternative queue name
# config.delay = 0 # Time to wait before message will be available on the queue
# config.timeout = 5.minutes # The time in seconds to wait after message is taken off the queue, before it is put back on. Delete before :timeout to ensure it does not go back on the queue.
# config.expires_in = 7.days # After this time, message will be automatically removed from the queue.
end
gem 'delayed_job_ironmq'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment