Skip to content

Commit

Permalink
default retry_for to nil, not 0 (#6035)
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsowaters authored Sep 12, 2023
1 parent cb2c974 commit 9f51b08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/job_util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def normalize_item(item)
item["jid"] ||= SecureRandom.hex(12)
item["class"] = item["class"].to_s
item["queue"] = item["queue"].to_s
item["retry_for"] = item["retry_for"].to_i
item["retry_for"] = item["retry_for"].to_i if item["retry_for"]
item["created_at"] ||= Time.now.to_f
item
end
Expand Down

0 comments on commit 9f51b08

Please sign in to comment.