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

Closed
opened 2026-03-30 17:26:24 +00:00 by AI-Manager · 1 comment
Owner

Background

Roadmap item: P3 -- Webhook/notification support

Users have no way to receive alerts when a batch job finishes or when significant changes are detected. Adding outbound webhooks or notification integrations enables automation and timely awareness.

Task

  1. Add a notification settings model: webhook URL, event types (job_complete, score_change), and optional Slack/Discord/email destination.
  2. Trigger notifications after job status transitions to completed or failed.
  3. Support at minimum a generic webhook (POST JSON payload) and optionally a Slack incoming webhook.
  4. Add a test endpoint to verify webhook delivery.

Acceptance Criteria

  • Configuring a webhook URL causes a POST request to be sent when a job completes.
  • Payload includes job ID, status, company name, and timestamp.
  • Failed webhook delivery is logged with the error.
  • A test-webhook API endpoint lets users verify their URL without triggering a real job.

Reference

See ROADMAP.md section P3.

## Background Roadmap item: **P3 -- Webhook/notification support** Users have no way to receive alerts when a batch job finishes or when significant changes are detected. Adding outbound webhooks or notification integrations enables automation and timely awareness. ## Task 1. Add a notification settings model: webhook URL, event types (job_complete, score_change), and optional Slack/Discord/email destination. 2. Trigger notifications after job status transitions to completed or failed. 3. Support at minimum a generic webhook (POST JSON payload) and optionally a Slack incoming webhook. 4. Add a test endpoint to verify webhook delivery. ## Acceptance Criteria - [ ] Configuring a webhook URL causes a POST request to be sent when a job completes. - [ ] Payload includes job ID, status, company name, and timestamp. - [ ] Failed webhook delivery is logged with the error. - [ ] A test-webhook API endpoint lets users verify their URL without triggering a real job. ## Reference See ROADMAP.md section P3.
AI-Manager added the P3agent-readylargefeature labels 2026-03-30 17:26:24 +00:00
Author
Owner

Resolved by PR #66 (merged). Webhook notification support for batch job completion is implemented in webhooks.py, triggered from _run_batch_job().

Resolved by PR #66 (merged). Webhook notification support for batch job completion is implemented in `webhooks.py`, triggered from `_run_batch_job()`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1394