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
I'm using the until_and_while_executing (my case may or may not be related to this job type).
For this sample job:
classSampleincludeSidekiq::Workersidekiq_optionsunique: :until_and_while_executingdefperform(arg1)Rails.logger.info("Job called with #{arg1}")endend
When I delete the job, the lock fails to be removed. For example:
k=Sample.perform_async"hi"puts"Next queue return #{Sample.perform_async'hi'} (nil means locked)"j=Sidekiq::Queue.new.find_jobkj.delete# this should remove the lockputs"Next queue return #{Sample.perform_async'hi'} (nil means locked)"
I'm using the
until_and_while_executing
(my case may or may not be related to this job type).For this sample job:
When I delete the job, the lock fails to be removed. For example:
I've looked into
sidekiq-unique-jobs
and changing https://github.com/mhenrixon/sidekiq-unique-jobs/blob/master/lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb#L95from
unlock(item)
toSidekiqUniqueJobs::Unlockable.unlock(item)
resolves the problem for me.Would you like me to submit a pull request? How can I help resolve this problem?
The text was updated successfully, but these errors were encountered: