All Versions
Latest Version
Avg Release Cycle
40 days
Latest Release
57 days ago

Changelog History
Page 3

  • v0.10.0.rc1 Changes

    July 04, 2020

    Beta version for v0.10 includes the following API changes:

    • (*Client).Enqueue, (*Client).EnqueueIn, and (*Client).EnqueueAt has changed to return a *Result and error. A Result struct contains metadata about task that was enqueued (e.g. ID, Queue, etc).
    • ErrorHandler signature has changed to func(context.Context, *Task, error). Please use GetRetryCount(ctx) and/or GetMaxRetry(ctx) to get the count values that was part of the argument list in the previous versions.

    Beta version for v0.10 includes the following semantics changes:

    • 0️⃣ All tasks now require timeout or deadline. By default, timeout is set to 1800 seconds(i.e. 30 mins) if none of them are specified.
    • Tasks that exceed its deadline are automatically retried. In the previous versions, User provided Handler needed to explicitly return an error when ctx.Done channel is closed. In the new version, this is taken care of by the library. In order to avoid processing tasks when its deadline is exceeded, Handler should always check ctx.Done channel and stop processing when the channel is closed.

    Other important changes:

    • ⬆️ Please upgrade to the new version of asynq CLI which is compatible with the new version of the library.
    • ✅ Encoding schema for messages has changed. Please install the latest CLI and run migrate command if you have tasks enqueued with the previous version of asynq.
  • v0.9.4 Changes

    June 13, 2020

    🛠 Fixed

  • v0.9.3 Changes

    June 12, 2020

    🛠 Fixed

  • v0.9.2 Changes

    June 08, 2020

    ➕ Added

    • 👀 The pause and unpause commands were added to the CLI. See README for the CLI for details.
  • v0.9.1 Changes

    May 29, 2020

    ➕ Added

    • 📇 GetTaskID, GetRetryCount, and GetMaxRetry functions were added to extract task metadata from context.
  • v0.9.0 Changes

    May 16, 2020

    🔄 Changed

    • 👀 Logger interface has changed. Please see the godoc for the new interface.

    ➕ Added

    • 🌲 LogLevel type is added. Server's log level can be specified through LogLevel field in Config.
  • v0.8.3 Changes

    May 08, 2020

    ➕ Added

    • Close method is added to Client.
  • v0.8.2 Changes

    May 03, 2020

    🛠 Fixed

  • v0.8.1 Changes

    April 27, 2020

    ➕ Added

    • 📜 ParseRedisURI helper function is added to create a RedisConnOpt from a URI string.
    • 0️⃣ SetDefaultOptions method is added to Client.
  • v0.8.0 Changes

    April 19, 2020

    🔄 Changed

    • Background type is renamed to Server.
    • ⚡️ To upgrade from the previous version, Update NewBackground to NewServer and pass Config by value.
    • CLI is renamed to asynq.
    • ⬆️ To upgrade the CLI to the latest version run go get -u
    • The ps command in CLI is renamed to servers
    • 0️⃣ Concurrency defaults to the number of CPUs when unset or set to a negative value.

    ➕ Added

    • ShutdownTimeout field is added to Config to speicfy timeout duration used during graceful shutdown.
    • 🆕 New Server type exposes Start, Stop, and Quiet as well as Run.