New
v0.25.0
Upgrades
- ⚠️ Minumum go version is set to 1.22 (PR: https://github.com/hibiken/asynq/pull/925)
- Internal protobuf package is upgraded to address security advisories (PR: https://github.com/hibiken/asynq/pull/925)
- Most packages are upgraded
- CI/CD spec upgraded
Added
IsPanicErrorfunction is introduced to support catching of panic errors when processing tasks (PR: https://github.com/hibiken/asynq/pull/491)JanitorIntervalandJanitorBatchSizeare added as Server options (PR: https://github.com/hibiken/asynq/pull/715)NewClientFromRedisClientis introduced to allow reusing an existing redis client (PR: https://github.com/hibiken/asynq/pull/742)TaskCheckIntervalconfig option is added to specify the interval between checks for new tasks to process when all queues are empty (PR: https://github.com/hibiken/asynq/pull/694)Pingmethod is added to Client, Server and Scheduler (PR: https://github.com/hibiken/asynq/pull/585)RevokeTaskerror type is introduced to prevent a task from being retried or archived (PR: https://github.com/hibiken/asynq/pull/882)SentinelUsernameis added as a redis config option (PR: https://github.com/hibiken/asynq/pull/924)- Some jitter is introduced to improve latency when fetching jobs in the processor (PR: https://github.com/hibiken/asynq/pull/868)
- Add task enqueue command to the CLI (PR: https://github.com/hibiken/asynq/pull/918)
- Add a map cache (concurrent safe) to keep track of queues that ultimately reduces redis load when enqueuing tasks (PR: https://github.com/hibiken/asynq/pull/946)
Fixes
- Archived tasks that are trimmed should now be deleted (PR: https://github.com/hibiken/asynq/pull/743)
- Fix lua script when listing task messages with an expired lease (PR: https://github.com/hibiken/asynq/pull/709)
- Fix potential context leaks due to cancellation not being called (PR: https://github.com/hibiken/asynq/pull/926)
- Misc documentation fixes
- Misc test fixes
⚠️ Potential issues
- Some of the lua scripts in this library may not be compatible with Redis Cluster.
⚠️ tools and x
- Yet to be fully upgraded (to v0.25.0)
- Use
@masterto go get the latest changes once updated.
New Contributors
- @testwill made their first contribution in https://github.com/hibiken/asynq/pull/682
- @abezzub made their first contribution in https://github.com/hibiken/asynq/pull/687
- @dependabot made their first contribution in https://github.com/hibiken/asynq/pull/615
- @yeqown made their first contribution in https://github.com/hibiken/asynq/pull/709
- @krhubert made their first contribution in https://github.com/hibiken/asynq/pull/694
- @0over made their first contribution in https://github.com/hibiken/asynq/pull/802
- @crazyoptimist made their first contribution in https://github.com/hibiken/asynq/pull/827
- @mrusme made their first contribution in https://github.com/hibiken/asynq/pull/843
- @camcui made their first contribution in https://github.com/hibiken/asynq/pull/860
- @zhenqianz made their first contribution in https://github.com/hibiken/asynq/pull/715
- @Harrison-Miller made their first contribution in https://github.com/hibiken/asynq/pull/743
- @pbarnum made their first contribution in https://github.com/hibiken/asynq/pull/585
- @kanzihuang made their first contribution in https://github.com/hibiken/asynq/pull/876
- @pior made their first contribution in https://github.com/hibiken/asynq/pull/868
- @Skwol made their first contribution in https://github.com/hibiken/asynq/pull/924
- @mboorstin made their first contribution in https://github.com/hibiken/asynq/pull/918
- @aradwann made their first contribution in https://github.com/hibiken/asynq/pull/942
Full Changelog: https://github.com/hibiken/asynq/compare/v0.24.1...v0.25.0