forked from 0xWheatyz/SPARC
Add webhook/notification support for job completion and score changes #1440
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?
Summary
There is no way to receive notifications when batch jobs complete or when a company's innovation score changes.
What to do
webhookstable (url, event_types, secret) and a management API.job.completedandscore.changedevents.Acceptance criteria
References
Roadmap: P3 -- webhook/notification support.
Already implemented.
SPARC/webhooks.pyprovides webhook notification support for job completion and score changes. It supports generic HTTP POST and Slack-compatible payloads, configurable viaWEBHOOK_URLSenvironment variable (comma-separated), with retry logic (3 retries with exponential backoff). Notifications are fired from_run_batch_job()inSPARC/api.pyon both success and failure.Closing as completed.