mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Fix race condition in retrying jobs via web UI
This commit is contained in:
parent
318f546c64
commit
53a07e018e
1 changed files with 1 additions and 0 deletions
|
@ -215,6 +215,7 @@ module Sidekiq
|
|||
|
||||
params['key'].each do |key|
|
||||
job = Sidekiq::RetrySet.new.fetch(*parse_params(key)).first
|
||||
next unless job
|
||||
if params['retry']
|
||||
job.retry
|
||||
elsif params['delete']
|
||||
|
|
Loading…
Reference in a new issue