forked from 0xWheatyz/SPARC
Add webhook/notification support for batch job completion and score changes #870
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 (Slack, Discord, email) when batch jobs complete or when a tracked company's innovation score changes significantly.
Work to do
webhookstable:id,url,events(JSON array),secret,enabled.batch.completedandscore.changed.Acceptance criteria
Resolved in codebase. SPARC/webhooks.py implements webhook notifications with configurable URLs (WEBHOOK_URLS env var), Slack/Discord-compatible payloads, exponential backoff retry (3 attempts), and both job_completed and patent_alert event types. Called from api.py batch job completion and scheduler alerts. Closing as implemented.