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

Dont set enqueued_at as we may be scheduling the jobs, see #5162

This commit is contained in:
Mike Perham 2022-02-02 14:18:01 -08:00
parent 9627cbbb94
commit e786e1c4aa

View file

@ -103,7 +103,7 @@ module Sidekiq
normed = normalize_item(items)
payloads = args.map.with_index { |job_args, index|
copy = normed.merge("args" => job_args, "jid" => SecureRandom.hex(12), "enqueued_at" => Time.now.to_f)
copy = normed.merge("args" => job_args, "jid" => SecureRandom.hex(12))
copy["at"] = (at.is_a?(Array) ? at[index] : at) if at
result = process_single(items["class"], copy)