[Review 2026-12-02 follow-up] WRK-002: report worker stderr tail on early exit #259

Closed
opened 2026-12-03 11:17:34 -05:00 by dohertj2 · 1 comment
Owner

Split out of #253 (D10). 68043411 fails an open with StartupFailed + the exit code when the worker exits before connecting. The stderr tail was deferred: worker stderr isn't redirected today, and capturing it changes where worker logs go. Decide the log destination, then attach the tail to the error.

Split out of #253 (D10). `68043411` fails an open with `StartupFailed` + the exit code when the worker exits before connecting. The stderr tail was deferred: worker stderr isn't redirected today, and capturing it changes where worker logs go. Decide the log destination, then attach the tail to the error.
dohertj2 added the area:gatewaytype:followuptype:review-findingpriority:p3 labels 2026-12-03 11:17:34 -05:00
Author
Owner

Merged to main at f6b80d02 (pushed 2026-12-03). Gateway suite 1637 passed / 0 failed (macOS); windev worker CI 847 passed / 0 failed on that SHA.

WorkerOutputCapture redirects worker stderr+stdout (both previously went nowhere — verified on windev for console and NSSM runs), forwards lines to the gateway log under ZB.MOM.WW.MxGateway.Worker (level from the worker's level= prefix; bounded drop-oldest queue, never blocks the worker), redacts the session nonce, and keeps a 50-line / 4 KB stderr tail appended to StartupFailed on early exit. Docs: docs/WorkerProcessLauncher.md "Worker Output Capture". Worker log lines now appear in the gateway log once deployed.

Merged to `main` at `f6b80d02` (pushed 2026-12-03). Gateway suite 1637 passed / 0 failed (macOS); windev worker CI 847 passed / 0 failed on that SHA. `WorkerOutputCapture` redirects worker stderr+stdout (both previously went nowhere — verified on windev for console and NSSM runs), forwards lines to the gateway log under `ZB.MOM.WW.MxGateway.Worker` (level from the worker's `level=` prefix; bounded drop-oldest queue, never blocks the worker), redacts the session nonce, and keeps a 50-line / 4 KB stderr tail appended to `StartupFailed` on early exit. Docs: `docs/WorkerProcessLauncher.md` "Worker Output Capture". Worker log lines now appear in the gateway log once deployed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/mxaccessgw#259