aboutsummaryrefslogtreecommitdiff
path: root/src/zencompute/runners/functionrunner.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-04-02 20:47:55 +0200
committerStefan Boberg <[email protected]>2026-04-02 20:47:55 +0200
commit438024e505a0141169ede6a8d342d14439ccb970 (patch)
tree19880cc34351cc480d3b544475927eaa0ad1ac94 /src/zencompute/runners/functionrunner.cpp
parentMerge branch 'sb/compute-oidc-auth' of ssh://arn-wd-l1704:2222/ue-foundation/... (diff)
downloadzen-438024e505a0141169ede6a8d342d14439ccb970.tar.xz
zen-438024e505a0141169ede6a8d342d14439ccb970.zip
Add failure reason tracking to compute actions and Ctrl+C scroll region cleanup
- Add FailureReason field to RunnerAction, propagated through /jobs/completed response so remote schedulers can see why actions failed - Log failure reasons at point of failure: exit code, output gathering exceptions, sandbox setup errors, remote runner shutdown - Log warning when retry limit is exhausted for an action - Install Ctrl+C/Ctrl+Break handler to reset terminal scroll region when ProgressBar is active, preventing broken terminal state on interruption - Clear FailureReason on action reschedule so retries start fresh
Diffstat (limited to 'src/zencompute/runners/functionrunner.cpp')
-rw-r--r--src/zencompute/runners/functionrunner.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/zencompute/runners/functionrunner.cpp b/src/zencompute/runners/functionrunner.cpp
index 64ff7fd50..f3d5acca5 100644
--- a/src/zencompute/runners/functionrunner.cpp
+++ b/src/zencompute/runners/functionrunner.cpp
@@ -400,6 +400,7 @@ RunnerAction::ResetActionStateToPending()
// Clear execution fields
ExecutionLocation.clear();
+ FailureReason.clear();
CpuUsagePercent.store(-1.0f, std::memory_order_relaxed);
CpuSeconds.store(0.0f, std::memory_order_relaxed);