API Reference

arq

A fast asyncio-based job queue for Python that uses Redis and supports deferred and cron tasks.

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

Installation

pippip install arq

Methods

arq runs async job functions in worker processes with Redis as the queue backend.

Key Features

  • Async-first job functions
  • Deferred and cron scheduling
  • Worker settings as a class

Usage Notes

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

Errors

The following points are quoted verbatim from the official documentation. 来源:https://arq-docs.helpmanual.io/ · 取证方式:HTTP GET 官方 README/文档页(HTML 去标签) · 抓取时间:2026-11-07T13:48:12.364Z. Any error type, throw condition or recovery step not stated there is left unspecified; this page does not infer exception classes or return values.

  • Warning In v0.16 arq was COMPLETELY REWRITTEN to use an entirely different approach to registering workers, enqueueing jobs and processing jobs. (https://arq-docs.helpmanual.io/)
  • Warning It is essential that the serialization functions used by arq.connections.create_pool() and arq.worker.Worker are the same, otherwise jobs created by the former cannot be executed by the latter. (https://arq-docs.helpmanual.io/)
  • To specify a retry policy for specific errors, first set retry_on_error to a list of the error/s to retry on, then set retry to a valid Retry object. (https://arq-docs.helpmanual.io/)

FAQ

How do I configure the worker?
Define a WorkerSettings class listing functions and cron_jobs, then run arq module.WorkerSettings.
Do jobs need to be async?
Yes. arq expects coroutine functions, which keeps the worker single-threaded and efficient for IO.
How do retries work?
Jobs can raise Retry to reschedule themselves with a delay, and max_tries bounds the attempts.