From f8ab1593e64d032175a080aba07a60b755645299 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 10 Nov 2023 20:58:19 +0100 Subject: [PATCH] add more help for activating dedicated worker --- frontend/src/lib/components/ScriptBuilder.svelte | 9 ++++++++- frontend/src/lib/components/WorkspaceGroup.svelte | 8 +++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/ScriptBuilder.svelte b/frontend/src/lib/components/ScriptBuilder.svelte index 89c770c6c0..004e9eb3d7 100644 --- a/frontend/src/lib/components/ScriptBuilder.svelte +++ b/frontend/src/lib/components/ScriptBuilder.svelte @@ -652,7 +652,14 @@ right: 'Script is run on dedicated workers' }} /> - + {#if script.dedicated_worker} +
+ + One worker in a worker group needs to be configured with dedicated worker + set to:
{$workspaceStore}:{script.path}
+
+
+ {/if} In this mode, the script is meant to be run on dedicated workers that run the diff --git a/frontend/src/lib/components/WorkspaceGroup.svelte b/frontend/src/lib/components/WorkspaceGroup.svelte index 5e3819d073..b69e124990 100644 --- a/frontend/src/lib/components/WorkspaceGroup.svelte +++ b/frontend/src/lib/components/WorkspaceGroup.svelte @@ -320,7 +320,13 @@ }} bind:value={nconfig.dedicated_worker} /> -

+

Workers will get killed upon detecting this setting change. It is assumed they are in an environment where the supervisor will restart them. Upon restart, they will pick the new dedicated worker config.