forked from 0xWheatyz/SPARC
Add webhook/notification support for batch job completion and score changes #1515
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 want to receive alerts via Slack, Discord, or email when batch jobs complete or when a company innovation score changes significantly.
What to do
notificationsconfig table or env vars for webhook URLs (Slack incoming webhook, Discord webhook, SMTP settings).POST /notify/testendpoint to send a test notification.Acceptance criteria
[Repo Manager] This issue is already resolved.
SPARC/webhooks.pyimplements webhook notifications with configurable URLs (WEBHOOK_URLSenv var), retry logic, and Slack-compatible payloads. Job completion firesnotify_job_completed()from the batch job runner. Closing as complete.