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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Goal
A redeploy today leaves scan runs stuck in
runningforever and drops in-flight requests, and the webhook port is hardcoded. Closes #65 and #68.What to change
with_graceful_shutdownto the agent, webhook and MCP servers.runningscan runs asinterrupted.JobQueue::sweep_expiredperiodically.Acceptance
running; orphans show asinterruptedin the scan-run view (MVP-3.2).JobQueue::sweep_expiredruns on a timer and is covered by a test.