Run Failure/Timeout Alerting #78
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Tasks
Migration
000007_create_run_alerts.up.sql:Alert Service
internal/services/alert_service.go:DispatchAlert(ctx, run *domain.Run)— called by run service when a run ends infailedortimed_outrun.JobIDwhere condition matcheswebhook:POSTto target URL with JSON payload (run ID, job name, status, exit code)email: send via SMTP (configured inConfig) with a simple text templateAlert API (Admin/Operator):
GET /jobs/:id/alertsPOST /jobs/:id/alerts— Body:{ alert_type, target, on_failure, on_timeout }DELETE /alerts/:idAlert UI on job detail page:
Acceptance Criteria