Skip to content

Instantly share code, notes, and snippets.

@bigfleet
Created October 18, 2010 21:12
Show Gist options
  • Select an option

  • Save bigfleet/633068 to your computer and use it in GitHub Desktop.

Select an option

Save bigfleet/633068 to your computer and use it in GitHub Desktop.
When /^the mail queue is processed$/ do
mcount = Resque.size("mailer")
mcount.times do |m|
Resque::Worker.new("mailer").process
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment