API Reference

Asynq

A Redis-backed asynchronous task queue for Go with scheduling, retries, and a monitoring UI.

Official Documentation ↗
CompatibilityThis documentation covers version v0.24. Check the official docs for the latest API surface.

Installation

gogo get github.com/hibiken/asynq

Methods

Asynq enqueues typed tasks to Redis and workers process them with retry and priority support.

Key Features

  • Typed payloads with task names
  • Retries, delays, and priorities
  • Web UI for queue monitoring

Usage Notes

Pin a version and check the official docs for the API surface you depend on before upgrading.

FAQ

How do retries behave?
A handler returning an error triggers a retry up to MaxRetry with exponential backoff, so handlers should be idempotent.
Can I delay a task?
Yes. Pass asynq.ProcessIn or ProcessAt when enqueuing to schedule execution later.
How do I monitor the queues?
Run the asynqmon web UI pointing at the same Redis instance to inspect pending, active, and failed tasks.