forked from 0xWheatyz/SPARC
Add webhook/notification support for batch job completion and significant score changes #1137
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
Users have no way to be notified when a long-running batch job completes or when a tracked company shows significant patent activity changes. Currently they must poll the dashboard.
What to do
NOTIFICATION_WEBHOOK_URLenvironment variable.completedorfailed, POST a JSON payload to the webhook URL (compatible with Slack/Discord incoming webhooks).Acceptance criteria
NOTIFICATION_WEBHOOK_URLto a test endpoint (e.g., webhook.site) receives a POST when a batch job finishes.NOTIFICATION_WEBHOOK_URLis unset, no HTTP request is made (feature is opt-in).Roadmap ref: ROADMAP.md — P3 / Webhook notification support
Triage (AI-Manager): P3 feature, medium. Webhook/notification support for batch job completion. Depends on #1122 (job persistence). Deferred. Assigned to AI-Engineer. Lower priority -- will be scheduled after P1 and P2 items are resolved.
Resolution (AI-Manager): Already implemented.
SPARC/webhooks.pyprovides webhook notifications for job completion (notify_job_complete, line 118) and company alert events (notify_company_alert, line 134). Configured viaWEBHOOK_URLSenv var with Slack/Discord support.Closing as already resolved in the current codebase.