fix(scripting): #1064 the ScriptWorker applies the in-process result rule — a returned lazy sequence is materialised inside the run and held to Scripting:MaxResultElements (Hello.max_result_elements), same value and same failure text in both runners

This commit is contained in:
Joseph Doherty
2026-12-03 16:35:01 -05:00
parent fe4bbbe256
commit a06dc8dd9f
8 changed files with 85 additions and 5 deletions
+3 -1
View File
@@ -251,7 +251,9 @@ scripted-alarm predicates) runs scripts through the shared `ScriptRunGuard`:
Arrays, lists, strings and scalars are unchanged. **Still in-process-only limits** (the boundary is
`Scripting:Runner=OutOfProcess`): memory exhaustion inside a run (the sample is after the fact), a
non-terminating loop (an orphan thread, then quarantine) and the same two inside an enumerated
sequence. See `docs/VirtualTags.md` §"Known resource limits (accepted trade-offs)".
sequence. See `docs/VirtualTags.md` §"Known resource limits (accepted trade-offs)". The out-of-process
worker applies the same rule with the same cap and the same failure text (#1064), so a script behaves
identically under `Scripting:Runner=InProcess` and `OutOfProcess`.
- **Out of process (opt-in, lmxopcua#780).** `Scripting:Runner=OutOfProcess` moves the
virtual-tag and Calculation seams' compiled runs — and the scripted-alarm predicates,
when `Scripting:Runner:Seams` lists `ScriptedAlarm` — into `ScriptWorker` processes, where a
+1 -1
View File
File diff suppressed because one or more lines are too long