2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-09-20 11:05:58 +08:00

fix: Wait for specified time duration before shutdown

This commit is contained in:
Ken Hibino 2020-11-22 11:50:57 -08:00
parent 2604bb2192
commit dcd873fa2a
2 changed files with 22 additions and 16 deletions

View File

@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
### Fixed
- Fixed processor to wait for specified time duration before forcefully shutdown workers.
## [0.13.0] - 2020-10-13 ## [0.13.0] - 2020-10-13
### Added ### Added

View File

@ -102,6 +102,7 @@ func newProcessor(params processorParams) *processor {
abort: make(chan struct{}), abort: make(chan struct{}),
errHandler: params.errHandler, errHandler: params.errHandler,
handler: HandlerFunc(func(ctx context.Context, t *Task) error { return fmt.Errorf("handler not set") }), handler: HandlerFunc(func(ctx context.Context, t *Task) error { return fmt.Errorf("handler not set") }),
shutdownTimeout: params.shutdownTimeout,
starting: params.starting, starting: params.starting,
finished: params.finished, finished: params.finished,
} }