1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Set Worker's bid when using Sidekiq::Testing

Closes #2336
This commit is contained in:
Michal Cichra 2015-05-13 09:52:44 +02:00
parent 19ef4722e1
commit 8cd70cfa83

View file

@ -152,6 +152,7 @@ module Sidekiq
while job = jobs.shift do
worker = new
worker.jid = job['jid']
worker.bid = job['bid'] if worker.respond_to?(:bid=)
execute_job(worker, job['args'])
end
end
@ -162,6 +163,7 @@ module Sidekiq
job = jobs.shift
worker = new
worker.jid = job['jid']
worker.bid = job['bid'] if worker.respond_to?(:bid=)
execute_job(worker, job['args'])
end