mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Improve fault tolerance of rescheduling jobs using API
This commit is contained in:
parent
c3be588a47
commit
01b4976c7b
1 changed files with 3 additions and 2 deletions
|
@ -471,8 +471,9 @@ module Sidekiq
|
|||
end
|
||||
|
||||
def reschedule(at)
|
||||
delete
|
||||
@parent.schedule(at, item)
|
||||
Sidekiq.redis do |conn|
|
||||
conn.zincrby(@parent.name, at - @score, Sidekiq.dump_json(@item))
|
||||
end
|
||||
end
|
||||
|
||||
def add_to_queue
|
||||
|
|
Loading…
Add table
Reference in a new issue