From 043dcfbf5663eedf82c86b17274099c6ff62f91c Mon Sep 17 00:00:00 2001 From: Mohamed Sohail Date: Wed, 11 Dec 2024 09:05:00 +0300 Subject: [PATCH 1/2] fix: call Stop on all other signals to correctly set the server state for the shutdown procedure to complete successfully (#982) * fixes: #979 --- signals_unix.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/signals_unix.go b/signals_unix.go index 8bd2fc5..274675f 100644 --- a/signals_unix.go +++ b/signals_unix.go @@ -24,8 +24,10 @@ func (srv *Server) waitForSignals() { if sig == unix.SIGTSTP { srv.Stop() continue + } else { + srv.Stop() + break } - break } } From 489e21920b92ae6acfc19c54de91166e56817620 Mon Sep 17 00:00:00 2001 From: Mohammed Sohail Date: Wed, 11 Dec 2024 09:19:37 +0300 Subject: [PATCH 2/2] release: v0.25.1 --- CHANGELOG.md | 19 +++++++++++++++++++ internal/base/base.go | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d7b7ac7..b5a899c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.25.1] - 2024-12-11 + +### Upgrades + +* Some packages + +### Added + +* Add `HeartbeatInterval` option to the scheduler (PR: https://github.com/hibiken/asynq/pull/956) +* Add `RedisUniversalClient` support to periodic task manager (PR: https://github.com/hibiken/asynq/pull/958) +* Add `--insecure` flag to CLI dash command (PR: https://github.com/hibiken/asynq/pull/980) +* Add logging for registration errors (PR: https://github.com/hibiken/asynq/pull/657) + +### Fixes +- Perf: Use string concat inplace of fmt.Sprintf in hotpath (PR: https://github.com/hibiken/asynq/pull/962) +- Perf: Init map with size (PR: https://github.com/hibiken/asynq/pull/673) +- Fix: `Scheduler` and `PeriodicTaskManager` graceful shutdown (PR: https://github.com/hibiken/asynq/pull/977) +- Fix: `Server` graceful shutdown on UNIX systems (PR: https://github.com/hibiken/asynq/pull/982) + ## [0.25.0] - 2024-10-29 ### Upgrades diff --git a/internal/base/base.go b/internal/base/base.go index 505e1ba..90e635e 100644 --- a/internal/base/base.go +++ b/internal/base/base.go @@ -23,7 +23,7 @@ import ( ) // Version of asynq library and CLI. -const Version = "0.25.0" +const Version = "0.25.1" // DefaultQueueName is the queue name used if none are specified by user. const DefaultQueueName = "default"