mirror of
https://github.com/hibiken/asynq.git
synced 2025-10-25 10:56:12 +08:00
2.2 KiB
2.2 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on "Keep a Changelog", and this project adheres to Semantic Versioning.
[Unreleased]
Changed
Handlerinterface has changed.ProcessTaskmethod takes two argumentscontext.Contextand*asynq.TaskQueuesfield inConfighas change frommap[string]uinttomap[string]int
Added
Clientcan optionally schedule task withasynq.Timeout(duration)to specify timeout duration for task. Default is no timeout.asynqmon cancel [task id]will send a cancelation signal to the goroutine processing the speicified task.
[0.3.0] - 2020-02-04
Added
asynqmon pswas added to list all background worker processes
[0.2.2] - 2020-01-26
Fixed
- Fixed restoring unfinished tasks back to correct queues.
Changed
asynqmon lscommand is now paginated (default 30 tasks from first page)asynqmon ls enqueued:[queue name]requires queue name to be specified
[0.2.1] - 2020-01-22
Fixed
- More structured log messages
- Prevent spamming logs with a bunch of errors when Redis connection is lost
- Fixed and updated README doc
[0.2.0] - 2020-01-19
Added
- NewTask constructor
Queuesoption inConfigto specify mutiple queues with priority levelClientcan schedule a task withasynq.Queue(name)to specify which queue to useStrictPriorityoption inConfigto specify whether the priority should be followed strictlyRedisConnOptto abstract away redis client implementation- [CLI]
asynqmon rmqcommand to remove queue
Changed
ClientandBackgroundconstructors takeRedisConnOptas their first argument.asynqmon statsnow shows the total of all enqueued tasks under "Enqueued"asynqmon statsnow shows each queue's task countasynqmon historynow doesn't take any arguments and shows data from the last 10 days by default (use--daysflag to change the number of days)- Task type is now immutable (i.e., Payload is read-only)
[0.1.0] - 2020-01-04
Added
- Initial version of asynq package
- Initial version of asynqmon CLI