1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Improve shutdown speed a bit, fixes #2774

This commit is contained in:
Mike Perham 2016-01-19 09:14:27 -08:00
parent 3f6940b606
commit 865d12755a

View file

@ -55,7 +55,8 @@ module Sidekiq
fire_event(:quiet, true)
end
PAUSE_TIME = $TESTING ? 0.1 : 0.5
# hack for quicker development / testing environment #2774
PAUSE_TIME = STDOUT.tty? ? 0.1 : 0.5
def stop(deadline)
quiet