litestar-queues

Installation
SKILL.md

litestar-queues

litestar-queues 0.5.0 is the first-party Litestar worker abstraction for task registration, durable queue state, worker lifecycle, schedules, uniqueness, bounded maintenance, and application-facing task events.

Keep persistence and placement separate:

  • A queue backend stores task records, identities, maintenance coordination, and optional event history.
  • An execution backend decides where a claimed task runs.
  • Worker wakeups are delivery hints. Persisted queue records remain the source of truth.

Code Style Rules

  • Use QueuePlugin to wire lifecycle, application state, DI, task discovery, schedules, workers, and CLI commands.
  • Put worker settings under QueueConfig(worker=WorkerConfig(...)).
  • Inject QueueService with NamedDependency[QueueService]; never use a module-level service from handlers.
  • Import public core types from litestar_queues. Import optional backend configuration from its backend submodule.
  • Keep persistent-backend arguments and metadata JSON-serializable. Pass stable object IDs instead of large payloads.
  • Use PEP 604 unions and async I/O. Prefer msgspec for event/client DTOs unless the project already uses Pydantic.
Installs
3
GitHub Stars
13
First Seen
Jul 10, 2026
litestar-queues — litestar-org/litestar-skills