mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Push to front of queue, not back
This commit is contained in:
parent
53862bda36
commit
742aeaa90e
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ module Sidekiq
|
||||||
# we'll use the object_id to track the worker's data here.
|
# we'll use the object_id to track the worker's data here.
|
||||||
processor.terminate if processor.alive?
|
processor.terminate if processor.alive?
|
||||||
unit_of_work = @in_progress[processor.object_id]
|
unit_of_work = @in_progress[processor.object_id]
|
||||||
conn.lpush(unit_of_work.queue, unit_of_work.message)
|
conn.rpush(unit_of_work.queue, unit_of_work.message)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
logger.info("Pushed #{@busy.size} messages back to Redis")
|
logger.info("Pushed #{@busy.size} messages back to Redis")
|
||||||
|
|
Loading…
Add table
Reference in a new issue