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

clone the job so middleware changes don't affect Busy listing

This commit is contained in:
Mike Perham 2016-11-01 11:17:38 -07:00
parent 5e07c8d6dc
commit cc9847cd9c

View file

@ -165,7 +165,7 @@ module Sidekiq
def stats(worker, job, queue)
tid = thread_identity
WORKER_STATE[tid] = {:queue => queue, :payload => job, :run_at => Time.now.to_i }
WORKER_STATE[tid] = {:queue => queue, :payload => cloned(job), :run_at => Time.now.to_i }
begin
yield