You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Job ID entries in the uniquejobs hash are not removed if the job is picked up after the unique_expiration time has passed.
To recreate the issue:
Stop Sidekiq.
Set up a worker with a test expiration that is verify small like unique_expiration: 10.seconds.
Submit a job. This will produce a uniquejobs:85d... key and an entry in the uniquejobs hash.
Wait 10 seconds for the uniquejobs:85d... key to expire.
Start Sidekiq.
At this point the job run, but the jid entry will be left in the uniquejobs hash.
The problem appears to have been introduced in this commit which refactored unlock_by_key in a way so that ensure_job_id_removed was no longer always called.
I see you have this commit which also solves the issue by completely removing the uniquejobs hash, but it isn't released yet. I'm going to submit a PR with a single-object change if you'd be interested in releasing this change as 5.0.11.
The text was updated successfully, but these errors were encountered:
Job ID entries in the
uniquejobs
hash are not removed if the job is picked up after theunique_expiration
time has passed.To recreate the issue:
unique_expiration: 10.seconds
.uniquejobs:85d...
key and an entry in theuniquejobs
hash.uniquejobs:85d...
key to expire.At this point the job run, but the
jid
entry will be left in theuniquejobs
hash.The problem appears to have been introduced in this commit which refactored
unlock_by_key
in a way so thatensure_job_id_removed
was no longer always called.I see you have this commit which also solves the issue by completely removing the
uniquejobs
hash, but it isn't released yet. I'm going to submit a PR with a single-object change if you'd be interested in releasing this change as 5.0.11.The text was updated successfully, but these errors were encountered: