From cd3c292fdcbf64dcbe106a64136ae71c4511477c Mon Sep 17 00:00:00 2001 From: Lyncoln Date: Mon, 26 Oct 2026 16:46:52 -0400 Subject: [PATCH] Added post runtime stop signals --- core/runtime/runtimecontract.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/runtime/runtimecontract.py b/core/runtime/runtimecontract.py index 35ca823..9aa133e 100644 --- a/core/runtime/runtimecontract.py +++ b/core/runtime/runtimecontract.py @@ -20,6 +20,11 @@ def buildPreRuntimeAttr(action, outputs): def buildRuntimeAttr(action, outputs, resolved, response): outputs, resolved = responsePolicy(response, action, outputs, resolved) + if not response.ok: + if hasattr(action, "depends"): + outputs["stopsignals"].append(action.alias) + return outputs, response + outputs = buildOutput(response, action, outputs) resolved = extractItem(action, outputs, resolved)