From 329124a6bc0d114d3733bf018cdc2b4ea6502744 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 31 Oct 2025 07:05:34 +0000 Subject: [PATCH] fix: fix setting high-priority tags in worker groups --- frontend/src/lib/components/WorkerGroup.svelte | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/lib/components/WorkerGroup.svelte b/frontend/src/lib/components/WorkerGroup.svelte index 0c0328c994..4457f536c6 100644 --- a/frontend/src/lib/components/WorkerGroup.svelte +++ b/frontend/src/lib/components/WorkerGroup.svelte @@ -43,7 +43,7 @@ let nconfig: { dedicated_worker?: string worker_tags?: string[] - priority_tags?: Map + priority_tags?: Record cache_clear?: number init_bash?: string periodic_script_bash?: string @@ -67,7 +67,7 @@ worker_tags: [] } if (nconfig.priority_tags === undefined) { - nconfig.priority_tags = new Map() + nconfig.priority_tags = {} } customEnvVars = [] @@ -117,7 +117,7 @@ | { dedicated_worker?: string worker_tags?: string[] - priority_tags?: Map + priority_tags?: Record cache_clear?: number init_bash?: string additional_python_paths?: string[] @@ -355,9 +355,9 @@ new Array(...(nconfig?.priority_tags?.keys?.() ?? [])), + () => (nconfig.priority_tags ? Object.keys(nconfig.priority_tags) : []), (v) => { - nconfig.priority_tags = new Map(v.map((k) => [k, 100])) + nconfig.priority_tags = Object.fromEntries(v.map((k) => [k, 100])) dirty = true } } @@ -825,7 +825,7 @@ {#snippet actions()} -
+
{#if dirty}
Non applied changes