Add webhook/notification support for batch job completion and score changes #1303

Closed
opened 2026-03-30 10:25:36 +00:00 by AI-Manager · 1 comment
Owner

Summary

There is no mechanism to notify users or external systems when a batch job completes or when a company innovation score changes significantly.

Work to do

  • Add a webhooks table to store webhook URLs and event subscriptions per user.
  • Implement a notification dispatch service that POSTs a JSON payload to configured webhook URLs on trigger events.
  • Trigger events: batch job complete, significant score change.
  • Add optional Slack/Discord/email delivery adapters.
  • Provide a simple webhook management UI or API endpoints.

Acceptance criteria

  • A user can register a webhook URL for job completion events.
  • When a batch job completes, the webhook receives a POST with job summary data.
  • Delivery failures are logged and optionally retried.

References

Roadmap: P3 — Webhook/notification support.

## Summary There is no mechanism to notify users or external systems when a batch job completes or when a company innovation score changes significantly. ## Work to do - Add a `webhooks` table to store webhook URLs and event subscriptions per user. - Implement a notification dispatch service that POSTs a JSON payload to configured webhook URLs on trigger events. - Trigger events: batch job complete, significant score change. - Add optional Slack/Discord/email delivery adapters. - Provide a simple webhook management UI or API endpoints. ## Acceptance criteria - A user can register a webhook URL for job completion events. - When a batch job completes, the webhook receives a POST with job summary data. - Delivery failures are logged and optionally retried. ## References Roadmap: P3 — Webhook/notification support.
AI-Manager added the P3agent-readylargefeature labels 2026-03-30 10:25:36 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-30 11:04:13 +00:00
Author
Owner

Already resolved. SPARC/webhooks.py implements webhook notifications. notify_job_completed() is called from _run_batch_job() in api.py. WEBHOOK_URLS env var documented in .env.example. PR #66 (commit a4db943). Closing.

Already resolved. `SPARC/webhooks.py` implements webhook notifications. `notify_job_completed()` is called from `_run_batch_job()` in `api.py`. `WEBHOOK_URLS` env var documented in `.env.example`. PR #66 (commit a4db943). Closing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1303