Idea
Celery gets its parallelism from dozens of forked processes. mayu runs tasks on real OS threads under free-threaded (no-GIL) CPython 3.14t instead, so a couple of processes do the work of dozens. The queue core is written in Rust. It is published on PyPI and is alpha.
Features
- Fast. About 31× Celery’s no-op throughput and 5× on a realistic task, using an eighth of the memory (my benchmarks: 64 workers on one machine, Redis 8).
- Free-threaded first. Thread mode on 3.14t, with automatic fallback to process mode on GIL builds.
- Reliable. A task is acknowledged only after it finishes, so a crash reruns it instead of losing it. It also has crash recovery, poison-task detection, dead letters with replay, and it survives Redis restarts.
- Familiar API.
@app.task,.delay(), retries, countdown and ETA, rate limits, soft and hard time limits, queue priority, callbacks andasync deftasks. - Operable. Prometheus metrics, JSON logs, OpenTelemetry tracing and an
inspectCLI.
Also
Selected for the XERJ Corpus Hub, the open reference memory that AI coding agents search for worked examples, with the source cited to file and line.
