runner restart guard: push-triggered seam/ci jobs run outside the swarm flock #469

Closed
opened 2026-08-12 14:44:13 +00:00 by ben · 1 comment
Owner

From the 2026-08-12 final whole-branch review (finding I-4); Task-9 residual, discovered during the workstation label swap.

Problem: the lock-queue restart procedure (blocking flock on /tmp/matou-swarm.lock) only serializes against swarm/triage runs. Push-triggered seam/ci jobs never take that lock, so the restart can't see them — the Task 9 restart showed ~30s of deactivating (graceful job stop) with no visible casualty, but a future runner restart (label change, version bump, the fence-fix ticket) can kill an in-flight ci run silently.

Fix: extend the restart runbook / lock-queue script to also poll the forge's /actions/tasks (with &page=1; SSH-proxied reads if the API is flaky) for running jobs of ANY workflow on the target host before restarting, and wait or warn. Mention the check in the fleet role's "unit changed — restart manually" handler text too.

From the 2026-08-12 final whole-branch review (finding I-4); Task-9 residual, discovered during the workstation label swap. **Problem:** the lock-queue restart procedure (blocking flock on /tmp/matou-swarm.lock) only serializes against swarm/triage runs. Push-triggered seam/ci jobs never take that lock, so the restart can't see them — the Task 9 restart showed ~30s of `deactivating` (graceful job stop) with no visible casualty, but a future runner restart (label change, version bump, the fence-fix ticket) can kill an in-flight ci run silently. **Fix:** extend the restart runbook / lock-queue script to also poll the forge's `/actions/tasks` (with `&page=1`; SSH-proxied reads if the API is flaky) for running jobs of ANY workflow on the target host before restarting, and wait or warn. Mention the check in the fleet role's "unit changed — restart manually" handler text too.
Author
Owner

This was generated by AI during triage.

Triage: added the missing category label. This is a defect report (push-triggered seam/ci jobs aren't visible to the restart lock-queue and can be killed silently) — labelled bug. ready-for-human was already correctly applied (runbook/lock-queue script change); left as-is.

> *This was generated by AI during triage.* **Triage:** added the missing category label. This is a defect report (push-triggered seam/ci jobs aren't visible to the restart lock-queue and can be killed silently) — labelled `bug`. `ready-for-human` was already correctly applied (runbook/lock-queue script change); left as-is.
ben closed this issue 2026-08-13 03:54:32 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#469
No description provided.