Worker: reply WorkerUnavailable to commands that race shutdown (R21-O1 / WRK-03) #182

Open
opened 2026-11-06 15:25:00 -05:00 by dohertj2 · 0 comments
Owner

TryStartCommandTask returns silently when _acceptingCommands is false, so a command racing shutdown gets no reply and no log.

Source: archreview/2026-10-21/remediation/00-tracking.md row R21-O1 (cycle-1 WRK-03)

Next step (from the tracker): Reply WorkerUnavailable (at minimum log WorkerCommandResultDropped) and add CommandAfterShutdown_RepliesWorkerUnavailable; verify on windev. Confirmed 2026-11-06: Ipc/WorkerPipeSession.cs:1240 still return;s.

Current-state evidence: the row is still Open/Deferred in the latest (2026-10-21) tracker, and a code check on local main @ 8c0a51d (2026-11-06) found it still present unless noted below.

`TryStartCommandTask` returns silently when `_acceptingCommands` is false, so a command racing shutdown gets no reply and no log. Source: `archreview/2026-10-21/remediation/00-tracking.md` row R21-O1 (cycle-1 WRK-03) Next step (from the tracker): Reply `WorkerUnavailable` (at minimum log `WorkerCommandResultDropped`) and add `CommandAfterShutdown_RepliesWorkerUnavailable`; verify on windev. Confirmed 2026-11-06: `Ipc/WorkerPipeSession.cs:1240` still `return;`s. Current-state evidence: the row is still `Open`/`Deferred` in the latest (2026-10-21) tracker, and a code check on local `main` @ `8c0a51d` (2026-11-06) found it still present unless noted below.
dohertj2 added the area:workerpriority:p2type:review-findingmigrated labels 2026-11-06 15:25:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/mxaccessgw#182