Worker watchdog grace not configurable (copied constant); new heartbeat options missing from effective config/Settings #224

Closed
opened 2026-11-09 13:25:17 -05:00 by dohertj2 · 1 comment
Owner

Residuals from #218:

  • The worker's own 15 s watchdog grace is not configurable from the gateway; the gateway validates against a copied constant (WorkerOptions.WorkerWatchdogGraceSeconds), so the two can drift. Export it like the heartbeat settings, or derive the validation from one shared source.
  • EffectiveWorkerConfiguration (positional record) and the dashboard Settings page do not show WorkerHeartbeatSendIntervalSeconds / WorkerHeartbeatStuckCeilingSeconds.
Residuals from #218: - The worker's own 15 s watchdog grace is not configurable from the gateway; the gateway validates against a copied constant (`WorkerOptions.WorkerWatchdogGraceSeconds`), so the two can drift. Export it like the heartbeat settings, or derive the validation from one shared source. - `EffectiveWorkerConfiguration` (positional record) and the dashboard Settings page do not show WorkerHeartbeatSendIntervalSeconds / WorkerHeartbeatStuckCeilingSeconds.
dohertj2 added the area:gatewaytype:followuppriority:p3 labels 2026-11-09 13:25:17 -05:00
Author
Owner

Fixed on main 22964e19: new MxGateway:Worker:WorkerHeartbeatGraceSeconds (default 15) exported as MXGATEWAY_WORKER_HEARTBEAT_GRACE_MS and read by WorkerPipeSessionOptions.FromEnvironment (an invalid ceiling≤grace combo falls back to the default grace, worker still starts). Gateway validates the worker stuck ceiling against the configured grace (1–86400); the copied WorkerWatchdogGraceSeconds constant is gone. EffectiveWorkerConfiguration + Settings page show worker send interval, watchdog grace, stuck ceiling. Tests: SettingsPage_RendersWorkerHeartbeatOptions (fails with the page reverted), validator, launcher and 2 new WorkerPipeSessionOptions cases. Evidence: Mac NonWindows.slnx 0 warnings, MxGateway.Tests 1406 passed / 2 skipped (after rebase); windev x86 Release build 0 warnings, Worker.Tests 759 passed / 12 skipped.

Fixed on main 22964e19: new MxGateway:Worker:WorkerHeartbeatGraceSeconds (default 15) exported as MXGATEWAY_WORKER_HEARTBEAT_GRACE_MS and read by WorkerPipeSessionOptions.FromEnvironment (an invalid ceiling≤grace combo falls back to the default grace, worker still starts). Gateway validates the worker stuck ceiling against the configured grace (1–86400); the copied WorkerWatchdogGraceSeconds constant is gone. EffectiveWorkerConfiguration + Settings page show worker send interval, watchdog grace, stuck ceiling. Tests: SettingsPage_RendersWorkerHeartbeatOptions (fails with the page reverted), validator, launcher and 2 new WorkerPipeSessionOptions cases. Evidence: Mac NonWindows.slnx 0 warnings, MxGateway.Tests 1406 passed / 2 skipped (after rebase); windev x86 Release build 0 warnings, Worker.Tests 759 passed / 12 skipped.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/mxaccessgw#224