From 4b873a9f5f2787fb79de09f6623461c5591be22f Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 10 Nov 2023 15:14:22 +0100 Subject: [PATCH] fix: improve display of optimized one-loops + dependency jobs of dedicated workers happen on dedicated worker --- backend/windmill-api/src/scripts.rs | 7 +- .../components/FlowStatusViewerInner.svelte | 171 ++++++++++-------- 2 files changed, 105 insertions(+), 73 deletions(-) diff --git a/backend/windmill-api/src/scripts.rs b/backend/windmill-api/src/scripts.rs index cfb02b7680..0fe732dd7f 100644 --- a/backend/windmill-api/src/scripts.rs +++ b/backend/windmill-api/src/scripts.rs @@ -598,6 +598,11 @@ async fn create_script( } _ => ns.content, }; + let tag = if ns.dedicated_worker.is_some_and(|x| x) { + Some(format!("{}:{}", &w_id, &ns.path,)) + } else { + ns.tag + }; let (_, new_tx) = windmill_queue::push( &db, tx, @@ -616,7 +621,7 @@ async fn create_script( false, None, true, - ns.tag, + tag, None, None, None, diff --git a/frontend/src/lib/components/FlowStatusViewerInner.svelte b/frontend/src/lib/components/FlowStatusViewerInner.svelte index 61bcf3e249..59e23183ba 100644 --- a/frontend/src/lib/components/FlowStatusViewerInner.svelte +++ b/frontend/src/lib/components/FlowStatusViewerInner.svelte @@ -1,5 +1,13 @@