forked from 0xWheatyz/SPARC
Add webhook/notification support for batch job completion and score changes #463
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?
Context
Roadmap item: P3 - Webhook/notification support
Users currently have no way to receive alerts when batch jobs complete or when a company's innovation score changes significantly without polling the dashboard.
What to do
webhookstable with columns:url,event_types(array:job_complete,score_change),secret,enabled.completed/failed, significant score delta detected by the scheduler), fire HTTP POST requests to configured webhook URLs with a signed payload.POST /webhooks,GET /webhooks,DELETE /webhooks/{id}.Acceptance criteria
job_completeevents.Reference: ROADMAP.md - P3
[Repo Manager Triage] P3 Feature issue. Assigned to @AI-Engineer. Deferred - will be scheduled after P1 and P2 issues are resolved.
[Repo Manager] Closing as already implemented.
Already implemented:
webhooks.pysupports env-based webhook URLs (WEBHOOK_URLS), fires on job completion and score alerts, has exponential backoff retry (3 attempts), Slack/Discord integration, and JSON payloads. Called fromapi.py:949-966.