Skip to content

Releases: hibiken/asynq

v0.18.5

01 Sep 13:04
Compare
Choose a tag to compare

This release includes one addition to the server config.

Added

IsFailure config option is added to Config to determine whether error returned from Handler counts as a failure.

v0.18.4

18 Aug 00:13
Compare
Choose a tag to compare

This release includes one fix.

Fixed

  • Scheduler methods are now thread-safe. It's now safe to call Register and Unregister concurrently.

v0.18.3

09 Aug 16:01
Compare
Choose a tag to compare

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

15 Jul 13:59
Compare
Choose a tag to compare

This release includes one change.

Changed

  • Queue function is updated to not to convert the provided queue name to lowercase.

v0.18.1

04 Jul 13:41
Compare
Choose a tag to compare

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

29 Jun 23:37
Compare
Choose a tag to compare

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 and Payload is accessed by a method call (previously these were fields on Task).

Server

  • Server API has changed. Renamed Quiet to Stop. Renamed Stop to Shutdown. Note: As a result of this renaming, the behavior of Stop has changed. Please update the existing code to call Shutdown where it used to call Stop.

Scheduler

  • Renamed Stop to Shutdown.

Client

  • Client.Enqueue returns TaskInfo (Previously returned Result struct)

Inspector

  • inspeq package is removed. All types and functions from the package is moved to asynq package.
  • Inspector.RunTaskByKey is replaced with Inspector.RunTask
  • Inspector.DeleteTaskByKey is replaced with Inspector.DeleteTask
  • Inspector.ArchiveTaskByKey is replaced with Inspector.ArchiveTask
  • WorkerInfo field names have changed.
  • Inspector.CancelActiveTask is renamed to Inspector.CancelProcessing
  • Inspector List methods (e.g. ListActiveTasks) returns slice of TaskInfo

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)

v0.17.2

06 Jun 13:53
Compare
Choose a tag to compare

This release includes one bug fix.

Fixed

  • Free unique lock when task is deleted (#275).

v0.17.1

04 Apr 19:52
Compare
Choose a tag to compare

This release includes one bug fix.

Fixed

  • Fixed internal RDB.memoryUsage method.

v0.17.0

24 Mar 23:55
Compare
Choose a tag to compare

This release includes one minor update to RedisConnOpt to support redis connection timeouts.

Added

  • DialTimeout, ReadTimeout, and WriteTimeout options are added to RedisConnOpt types.

v0.16.1

20 Mar 13:28
Compare
Choose a tag to compare

Fixed

  • Replaced KEYS command with SCAN as recommended by redis doc.