Skip to content

Commit

Permalink
Update lib/active_job/queue_adapters/resque_ext.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Rosa Gutierrez <[email protected]>
  • Loading branch information
alxckn and rosa committed Apr 3, 2024
1 parent 3daa89c commit 923d5cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_job/queue_adapters/resque_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def requeue(job)
resque_job = job.raw_data
resque_job["retried_at"] = Time.now.strftime("%Y/%m/%d %H:%M:%S")

redis.lset(queue_redis_key, job.position, resque_job.to_json)
redis.lset(queue_redis_key, job.position, Resque.encode(resque_job))
Resque::Job.create(resque_job["queue"], resque_job["payload"]["class"], *resque_job["payload"]["args"])
rescue Redis::CommandError => error
handle_resque_job_error(job, error)
Expand Down

0 comments on commit 923d5cc

Please sign in to comment.