Out-of-process script soft deadline includes pipe round trip and worker scheduling delay #827

Closed
opened 2026-11-11 00:05:59 -05:00 by dohertj2 · 1 comment
Owner

Found during #811. The worker's soft deadline (= seam run budget) starts at submit, so a starved worker process under load reports "script timed out" for trivial scripts; in Shadow mode that appears as a script mismatch and skews the census used to decide the OutOfProcess flip (#780). The in-process guard excludes thread-pool starvation. Decide whether to start the clock when the worker begins the evaluation (and report queue/transport delay separately). Also audit the other ScriptWorker tests for tight deadlines under load.

Found during #811. The worker's soft deadline (= seam run budget) starts at submit, so a starved worker process under load reports "script timed out" for trivial scripts; in Shadow mode that appears as a script mismatch and skews the census used to decide the OutOfProcess flip (#780). The in-process guard excludes thread-pool starvation. Decide whether to start the clock when the worker begins the evaluation (and report queue/transport delay separately). Also audit the other ScriptWorker tests for tight deadlines under load.
dohertj2 added the type:followuppriority:p3 labels 2026-11-11 00:05:59 -05:00
Author
Owner

Fixed (merge of fix/827-worker-deadline). Pushed to master in d1b6cad2. The soft deadline is the worker's clock from run start (negotiated in Hello/Ready); late soft notices cancel and count the timeout; host transport deadline T+G and progress ceiling killed_unresponsive = 3×max(T+G) + silence limit; timeouts metric tagged answer=stalled|retrigger. Windows suspend path untested: #842.

Fixed (merge of fix/827-worker-deadline). Pushed to master in `d1b6cad2`. The soft deadline is the worker's clock from run start (negotiated in Hello/Ready); late soft notices cancel and count the timeout; host transport deadline T+G and progress ceiling `killed_unresponsive` = 3×max(T+G) + silence limit; timeouts metric tagged `answer=stalled|retrigger`. Windows suspend path untested: #842.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/lmxopcua#827