MVP-0.6 · Graceful shutdown, stale scan recovery, configurable webhook port #259

Closed
opened 2026-09-20 20:16:04 +00:00 by sharang · 0 comments
Owner

Goal

A redeploy today leaves scan runs stuck in running forever and drops in-flight requests, and the webhook port is hardcoded. Closes #65 and #68.

What to change

  • Add with_graceful_shutdown to the agent, webhook and MCP servers.
  • At startup, mark orphaned running scan runs as interrupted.
  • Run JobQueue::sweep_expired periodically.
  • Make the webhook port configurable (#68).

Acceptance

  • SIGTERM drains in-flight requests on all three servers within a bounded timeout.
  • After a restart, no scan run is left in running; orphans show as interrupted in the scan-run view (MVP-3.2).
  • JobQueue::sweep_expired runs on a timer and is covered by a test.
  • The webhook port comes from configuration, with the current 3002 as the default; #65 and #68 closed.
## Goal A redeploy today leaves scan runs stuck in `running` forever and drops in-flight requests, and the webhook port is hardcoded. Closes **#65** and **#68**. ## What to change - Add `with_graceful_shutdown` to the agent, webhook and MCP servers. - At startup, mark orphaned `running` scan runs as `interrupted`. - Run `JobQueue::sweep_expired` periodically. - Make the webhook port configurable (**#68**). ## Acceptance - [ ] SIGTERM drains in-flight requests on all three servers within a bounded timeout. - [ ] After a restart, no scan run is left in `running`; orphans show as `interrupted` in the scan-run view (MVP-3.2). - [ ] `JobQueue::sweep_expired` runs on a timer and is covered by a test. - [ ] The webhook port comes from configuration, with the current 3002 as the default; #65 and #68 closed.
sharang added this to the Production MVP milestone 2026-09-20 20:16:04 +00:00
sharang added the bughighinfrastructure labels 2026-09-20 20:16:04 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#259