Releases: hibiken/asynq
Releases · hibiken/asynq
v0.19.0
This release includes an introduction of task retention after successful processing. With Retention
option, you can specify how long the task should be retained in the queue as a completed task.
Changed
NewTask
takesOption
as variadic argument- Bumped minimum supported go version to 1.14 (i.e. go1.14 or higher is required).
Added
Retention
option is added to allow user to specify task retention duration after completion.TaskID
option is added to allow user to specify task ID.ErrTaskIDConflict
sentinel error value is added.ResultWriter
type is added and provided throughTask.ResultWriter
method.TaskInfo
has new fieldsCompletedAt
,Result
andRetention
.
Removed
Client.SetDefaultOptions
is removed. UseNewTask
instead to pass default options for tasks.
v0.18.6
v0.18.5
v0.18.4
v0.18.3
This release includes minor change around task typename and critical performance fix for tooling (CLI, Web UI).
Changed
- Changed
Queue
function to not to convert the provided queue name to lowercase. Queue names are now case-sensitive. QueueInfo.MemoryUsage
is now an approximate usage value.
Fixed
- Fixed latency issue around memory usage (see #309)
v0.18.2
v0.18.1
This release includes a minor change and critical fix in the task recovering logic (tasks left in active state due to server crash).
Changed
- Changed to execute task recovering logic when server starts up; Previously it needed to wait for a minute for task recovering logic to exeucte.
Fixed
- Fixed task recovering logic to execute every minute
v0.18.0
Asynq 0.18 includes major API changes and changes to the tooling (WebUI and CLI).
The inspeq
sub package is removed, and all types and functions from the package are moved to asynq
package.
The upgrade guide is available here
Package API changes
Task
NewTask
function takes array of bytes as payload.- Task
Type
andPayload
is accessed by a method call (previously these were fields onTask
).
Server
Server
API has changed. RenamedQuiet
toStop
. RenamedStop
toShutdown
. Note: As a result of this renaming, the behavior ofStop
has changed. Please update the existing code to callShutdown
where it used to callStop
.
Scheduler
- Renamed
Stop
toShutdown
.
Client
Client.Enqueue
returnsTaskInfo
(Previously returnedResult
struct)
Inspector
inspeq
package is removed. All types and functions from the package is moved toasynq
package.Inspector.RunTaskByKey
is replaced withInspector.RunTask
Inspector.DeleteTaskByKey
is replaced withInspector.DeleteTask
Inspector.ArchiveTaskByKey
is replaced withInspector.ArchiveTask
WorkerInfo
field names have changed.Inspector.CancelActiveTask
is renamed toInspector.CancelProcessing
Inspector
List methods (e.g.ListActiveTasks
) returns slice ofTaskInfo
CLI changes
asynq task delete|run|archive
commands takes take ID as well as the queue name (previously required task key)
For example:
asynq task delete --queue=QUEUE --id=TASK_ID
Web UI (asynqmon) changes
- Payload now shows "non-printable bytes" if the payload bytes are not human readable (e.g. binary format)
Redis
- Requires redis v4.0+ for multiple field/value pair support
- Internal redis keys/values has changed (please see the migration guide)