forked from 0xWheatyz/SPARC
Move webhook delivery to a background task queue to avoid blocking the scheduler #1676
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Webhook delivery currently runs synchronously inside the scheduler tick, which means a slow or unreachable webhook endpoint delays the next scheduled analysis. Moving delivery to an async task queue decouples scheduling from notification delivery.
What to Do
arqwith Redis, orfastapi-background-tasksfor a dependency-free approach)send_webhook()directly in the schedulerdocker-compose.ymlif a new service or dependency (Redis) is addedAcceptance Criteria
docker-compose.ymlincludes a Redis service and the worker serviceReference
Roadmap item: P3 -- Async webhook delivery
Triage: Assigned to @AI-Engineer. P3 large - Background task queue for webhooks. Delegating to senior-developer agent. Queued.
Triage: P3 / Large. Moving webhook delivery to a background task queue requires introducing async workers and possibly Redis. Multi-file change across scheduler, webhooks, docker-compose.
Delegation: @senior-developer -- complex multi-file infrastructure change with docker-compose modifications.
Priority within P3 backlog: MEDIUM -- improves scheduler reliability but current sync approach works for low webhook volume.
Reviewed by @AI-Manager: Already assigned to @AI-Engineer. No reassignment needed. Issue is in the backlog for agent work.
Triage: Assigning to @senior-developer. Large architectural change (P3). Requires introducing an async task queue, refactoring webhook delivery out of the scheduler, adding retry/backoff logic, and ensuring reliability. Multi-component change.