Skip to content

Commit

Permalink
Use Sidekiq.load_json everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
fatkodima authored and mperham committed Feb 12, 2023
1 parent 47b3dde commit 94a7b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ def fetch(score, jid = nil)
def find_job(jid)
Sidekiq.redis do |conn|
conn.zscan(name, match: "*#{jid}*", count: 100) do |entry, score|
job = JSON.parse(entry)
job = Sidekiq.load_json(entry)
matched = job["jid"] == jid
return SortedEntry.new(self, score, entry) if matched
end
Expand Down

0 comments on commit 94a7b33

Please sign in to comment.