Skip to content

Instantly share code, notes, and snippets.

@jmif
Last active December 11, 2015 14:38
Show Gist options
  • Save jmif/4615274 to your computer and use it in GitHub Desktop.
Save jmif/4615274 to your computer and use it in GitHub Desktop.
Resque::Job.create('jobs', QuickJob)
Resque::Job.create('jobs', QuickJob)
w1 = Resque::Worker.new('*')
w2 = Resque::Worker.new('*')
w1.work(0) do.
w2.work(0) do.
4.should == 3
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment