litestar-saq

Installation
SKILL.md

litestar-saq

litestar-saq is the first-party plugin that integrates SAQ (Simple Async Queue) with Litestar. It provides:

  • SAQPlugin — registers queues, workers, lifespan management, and DI for TaskQueues
  • SAQConfig / QueueConfig — declarative queue + worker configuration
  • litestar workers run — CLI to start workers in-process or as a separate process
  • Optional web UI mounted under the Litestar app
  • DI injection of TaskQueues into route handlers for ergonomic enqueueing

Code Style Rules

  • Use PEP 604 unions: T | None, never Optional[T]
  • Consumer Litestar app modules MAY use from __future__ import annotations — canonical Litestar apps do.
  • Async all I/O — task bodies and enqueue calls are async def.
  • First positional arg of every task is ctx: dict (the SAQ context dict).
  • Task params after * are keyword-only.

Quick Reference

Installs
2
GitHub Stars
8
First Seen
May 18, 2026
litestar-saq — litestar-org/litestar-skills