Repository navigation
v0.2.9
Fixed
- Idle workers now stop promptly on shutdown. The Redis
Popblocked forever on an empty queue (BRPOPLPUSHwith timeout 0), soShutdownalways waited the full timeout and returnedcontext.DeadlineExceeded.Popnow blocks for at most 1 second and returns an empty job, letting the worker loop re-check for shutdown. - The metrics goroutine now also exits on
Shutdown, not only when theStartcontext is canceled, soShutdownno longer times out when the caller keeps that context alive.
Full Changelog: v0.2.8...v0.2.9