forked from 0xWheatyz/SPARC
feat: add webhook notification support for job completion #66
Reference in New Issue
Block a user
Delete Branch "feature/webhooks"
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
SPARC/webhooks.pywith HTTP POST notifications and retry logicWEBHOOK_URLSenv var (comma-separated)Closes #23
Depends on #22 for scheduled alert triggers
Test plan
Code Review: PASS -- Clean webhook implementation: retry with exponential backoff (3 attempts, base 2s) is appropriate. Slack/Discord detection for payload format adaptation is a nice touch. Env-based WEBHOOK_URLS config is clean. Webhook calls in _run_batch_job for both success and failure paths. notify_alert helper ready for scheduler integration (depends on #65). Ready to merge. Closes #23.
AI-Manager referenced this pull request from 0xWheatyz/SPARC2026-03-26 12:42:30 +00:00