litestar-queues

litestar-queues is a skill for Claude Code from litestar-org/litestar-skills. It costs 68 tokens per session (3,694 once invoked), scanned A, original, MIT.

A task-queue system for Litestar applications. It stores tasks, assigns them to workers, runs schedules, and reports task events.

In plain words
What is it for?
Use it for queued jobs, scheduled tasks, worker processes, unique tasks, task maintenance, and application-facing task events.
Why use it?
It separates background work from web requests while keeping task state durable and coordinating workers safely.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the litestar plugin — 20 skills, 1 agent shipped together

Good fit Use it for queued jobs, scheduled tasks, worker processes, unique tasks, task maintenance, and application-facing task events.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/litestar-org/litestar-skills/litestar-queues
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add litestar-org/litestar-skills --skill litestar-queues
Clone the repo
git clone --depth 1 https://github.com/litestar-org/litestar-skills

Made for: Claude Code.

Or install litestar, the plugin that ships this one along with the rest of its 20 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for litestar-queues

README.md
[![agentmods](https://agentmods.dev/badge/skills/litestar-org/litestar-skills/litestar-queues/github.svg)](https://agentmods.dev/skills/litestar-org/litestar-skills/litestar-queues)
Your own site
<a href="https://agentmods.dev/skills/litestar-org/litestar-skills/litestar-queues"><img src="https://agentmods.dev/badge/skills/litestar-org/litestar-skills/litestar-queues/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for litestar-queues

Your own site · 80×15
<a href="https://agentmods.dev/skills/litestar-org/litestar-skills/litestar-queues"><img src="https://agentmods.dev/badge/skills/litestar-org/litestar-skills/litestar-queues.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,694 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.03694
Opus 5.5 $0.00027 $0.01478
Sonnet 5.5 $0.00014 $0.00739
Haiku 4.5 $0.00007 $0.00369

Measured today against content hash 8cf6c0953052, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

litestar-queues scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/litestar-queues/SKILL.md · 239 lines

How it starts

The opening of the file, as written. The whole thing — 239 lines — stays where its author put it; the contents beside it link to each section on GitHub.

litestar-queues

litestar-queues 0.15.1 is the first-party Litestar worker and task-queue runtime for durable task state, worker lifecycles, schedules, uniqueness, bounded maintenance, external execution dispatch, and live task events.

Keep persistence and placement separate:

  • A queue backend owns task records, uniqueness reservations, maintenance coordination, and optional event history.
  • An execution backend decides where a claimed task runs ("local", "immediate", Cloud Tasks, Cloud Run Jobs, Kafka, Pub/Sub, RabbitMQ, SQS).
  • Worker wakeups are delivery hints only; persisted queue records remain the source of truth.

Code Style Rules

  • Wire lifecycle, DI, task discovery, schedules, workers, and CLI commands through QueuePlugin(QueueConfig(...)).
  • Put worker settings under QueueConfig(worker=WorkerConfig(...)); inject NamedDependency[QueueService] in handlers instead of module globals.
  • Import core types (QueuePlugin, QueueConfig, WorkerConfig, QueueService, TaskListPage, QueueMaintenanceConfig, build_maintenance_route, task) from litestar_queues; import backend configs from .sqlspec, .advanced_alchemy, .redis, or .valkey.
  • Keep persisted task arguments and metadata JSON-serializable; pass stable entity IDs rather than large payloads.

Quick Reference

Minimal Plugin Setup

QueueConfig() defaults to queue_backend="ephemeral" (private per-invocation SQLite), execution_backend="local", and WorkerConfig(placement="server"). Process-local "memory" storage requires a shared-process placement:

from litestar import Litestar
from litestar_queues import QueueConfig, QueuePlugin, WorkerConfig

dev_app = Litestar(plugins=[QueuePlugin(QueueConfig())])
memory_config = QueueConfig(queue_backend="memory", worker=WorkerConfig(placement="asgi"))

Incompatible storage, execution, and placement combinations fail fast at startup.

Tasks, Enqueueing, Uniqueness, and Cancellation

from datetime import timedelta

from litestar_queues import QueueEventActor, QueueService, RetryBackoff, job_cancelled, non_retryable, task


@task(
    "reports.render",
    queue="reports",
    priority=10,
    retries=3,
    retry_backoff=RetryBackoff(initial_delay=2.0, multiplier=2.0, max_delay=60.0),
    timeout=120,
    expires_in=timedelta(minutes=30),
    unique_by="arguments",
    unique_until="terminal",
    actor=QueueEventActor(type="service", id="reports-worker", name="Reports Worker"),
)
async def render_report(report_id: str, *, format: str = "pdf") -> str:
    """Render a report or abort retries on permanent input errors."""
    if report_id == "invalid":
        non_retryable("Report ID does not exist")
    return f"{report_id}.{format}"


@task("reports.refresh", interval=timedelta(minutes=15), jitter=30, retries=2)
async def refresh_reports() -> None:
    """Periodically refresh report summaries."""


async def queue_report(queue_service: QueueService, report_id: str) -> str:
    """Enqueue a report task with runtime overrides and wait briefly."""
    result = await queue_service.enqueue(render_report, report_id, timeout=600, metadata={"origin": "api"})
    await result.wait(timeout=30)
    return result.status or "unknown"

Read the full file on GitHub · 239 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · -127 lines 8cf6c0953052
  2. 13d ago Changed · +9 tokens per session 3d769154026d
  3. 23d ago Changed 7ffe4181e698
  4. 1mo ago Changed · -472 lines 38d15ad514d2
  5. 1mo ago Changed · +22 lines f8e05508e54b
  6. 2mo ago Changed · +6 lines ac0adc604b06
  7. 2mo ago Changed · +200 lines · -15 tokens per session dcb45b668d59
  8. 3mo ago First seen · 610 lines · 74 tokens per session scan A 4568f147bb90

Subscribe to this mod's changes

litestar-queues is a skill published in the GitHub repository litestar-org/litestar-skills (19 stars, last pushed today), licensed MIT. It adds 68 tokens to every session and 3,694 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

litestar-queues compared with skills from other repositories

litestar-queues next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
litestar-queueslitestar-org/litestar-skillsSkill19todayMITA68Claude Code
add-server-logicmicrosoft/power-platform-skillsSkill1.2ktodayMITA83Claude Code
integrate-webapimicrosoft/power-platform-skillsSkill1.2ktodayMITA105Claude Code
add-cloud-flowmicrosoft/power-platform-skillsSkill1.2ktodayMITA91Claude Code
integrate-backendmicrosoft/power-platform-skillsSkill1.2ktodayMITA86Claude Code
migrate-webapi-selectallmicrosoft/power-platform-skillsSkill1.2ktodayMITA141Claude Code
generate-codeful-mcp-toolmicrosoft/power-platform-skillsSkill1.2ktodayMITA71Claude Code