From db63eaf29cb4acb56651a6ea65bc1c233effbce5 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sat, 30 Sep 2023 08:50:32 +0200 Subject: [PATCH] fix 0 len flow module processing --- backend/windmill-worker/src/worker_flow.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/windmill-worker/src/worker_flow.rs b/backend/windmill-worker/src/worker_flow.rs index 12c1e76049..fc9d6559cc 100644 --- a/backend/windmill-worker/src/worker_flow.rs +++ b/backend/windmill-worker/src/worker_flow.rs @@ -166,7 +166,8 @@ pub async fn update_flow_status_after_job_completion_internal< (false, None) }; - let is_failure_step = old_status.step >= old_status.modules.len() as i32; + let is_failure_step = + old_status.step >= old_status.modules.len() as i32 && old_status.modules.len() > 0; let (mut stop_early, skip_if_stop_early) = if let Some(se) = stop_early_override { //do not stop early if module is a flow step