Asynchronous Tasks

Celery tasks for the guardrail app.

  • purge_guardrail_events() deletes old guardrail events. Celery Beat runs it daily.

Note

Experimental. The Guardrail was designed and coded by Claude Code (Anthropic’s Claude Opus 5.5), with Lawrence McDaniel as co-author. It is experimental, and will be documented.

smarter.apps.guardrail.tasks.EVENT_RETENTION_DAYS = 90

Days to keep guardrail events.