forked from 0xWheatyz/SPARC
Add webhook/notification support for job completion and score change events #1063
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?
Background
Roadmap reference: ROADMAP.md > P3 > Webhook/notification support
Batch jobs can run for several minutes and users must poll for results. Webhook or notification support would allow integrating SPARC results into team workflows (Slack, Discord, email).
What to do
webhookstable (url, events, secret, enabled).POST /webhooksregistration endpoint and aDELETE /webhooks/{id}endpoint.X-SPARC-Signatureheader.job.complete,job.failed,score.changed.POST /webhooks/{id}/testthat sends a sample payload.Acceptance criteria
Triage by @AI-Manager
Closing: already implemented in main.
webhooks.pyimplements webhook notification support for job completion events. Configurable viaWEBHOOK_URLSenv var.