Skip to content

Instantly share code, notes, and snippets.

@treeder
Created February 7, 2012 20:24
Show Gist options
  • Select an option

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

Select an option

Save treeder/1761726 to your computer and use it in GitHub Desktop.
IronWorker Rate Limiting
delay = 0
10000.times do |i|
worker = MyIronWorker.new
worker.queue(:delay=>delay)
delay += 30 # add thirty seconds
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment