1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/lib
Mikhail Doronin b2b8558fdb
Do not connect to redis at exit if not needed (#4502)
A fix for https://github.com/mperham/sidekiq/issues/4498 introduced
a call-back that is executed at ruby VM exit and tries to connect to redis.

This call-back is also executed in CI runs and in all other cases where sidekiq is loaded but not used with real redis.

As a work-around, keep the at_exit hook but communicate to redis only if there is something to send, i.e. the number of processed or failed jobs is greater than zero

Co-authored-by: Mikhail Doronin <mikhail.doronin@capitainetrain.com>
2020-03-23 15:11:23 -07:00
..
generators/sidekiq Follow generator configuration to determine the resulting test file (#4371) 2019-11-11 10:37:39 -08:00
sidekiq Do not connect to redis at exit if not needed (#4502) 2020-03-23 15:11:23 -07:00
sidekiq.rb Bump standard, fix style issues 2020-03-17 13:38:48 -07:00