mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
parent
19ef4722e1
commit
8cd70cfa83
1 changed files with 2 additions and 0 deletions
|
@ -152,6 +152,7 @@ module Sidekiq
|
||||||
while job = jobs.shift do
|
while job = jobs.shift do
|
||||||
worker = new
|
worker = new
|
||||||
worker.jid = job['jid']
|
worker.jid = job['jid']
|
||||||
|
worker.bid = job['bid'] if worker.respond_to?(:bid=)
|
||||||
execute_job(worker, job['args'])
|
execute_job(worker, job['args'])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -162,6 +163,7 @@ module Sidekiq
|
||||||
job = jobs.shift
|
job = jobs.shift
|
||||||
worker = new
|
worker = new
|
||||||
worker.jid = job['jid']
|
worker.jid = job['jid']
|
||||||
|
worker.bid = job['bid'] if worker.respond_to?(:bid=)
|
||||||
execute_job(worker, job['args'])
|
execute_job(worker, job['args'])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue