From 8b14a78822f95fb045d80940dfd9197f79ea88cc Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sun, 18 Oct 2026 10:47:48 +0200 Subject: [PATCH] fix: warn when an autoscaled worker group has no tags to count (#11859) * fix: warn when an autoscaled worker group has no tags to count Co-Authored-By: Claude Opus 5.5 * fix: drop warning autoscaling events when rolling the migration back Co-Authored-By: Claude Opus 5.5 * fix: drop the autoscaling warning event and its migration Co-Authored-By: Claude Opus 5.5 * fix: tell agent groups to match custom tags to their token tags Co-Authored-By: Claude Opus 5.5 * chore: update ee-repo-ref to a673d2e3fe12927921be86c3a52bd9c956759c65 This commit updates the EE repository reference after PR #898 was merged in windmill-ee-private. Previous ee-repo-ref: bbb21dad8a18f0593a2e1a2f2930b427f44404cd New ee-repo-ref: a673d2e3fe12927921be86c3a52bd9c956759c65 Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 Co-authored-by: windmill-internal-app[bot] --- backend/ee-repo-ref.txt | 2 +- .../components/AutoscalingConfigEditor.svelte | 41 ++++++++++++++++++- .../src/lib/components/WorkerGroup.svelte | 22 +++++++++- .../(root)/(logged)/workers/+page.svelte | 4 +- 4 files changed, 62 insertions(+), 7 deletions(-) diff --git a/backend/ee-repo-ref.txt b/backend/ee-repo-ref.txt index e59a2aee07..9b8b88cbc3 100644 --- a/backend/ee-repo-ref.txt +++ b/backend/ee-repo-ref.txt @@ -1 +1 @@ -96e8e2aa15bdc5968a1dae10f4e81d47d7ea49e0 +a673d2e3fe12927921be86c3a52bd9c956759c65 diff --git a/frontend/src/lib/components/AutoscalingConfigEditor.svelte b/frontend/src/lib/components/AutoscalingConfigEditor.svelte index 3ebbb5d41c..6ae4f77743 100644 --- a/frontend/src/lib/components/AutoscalingConfigEditor.svelte +++ b/frontend/src/lib/components/AutoscalingConfigEditor.svelte @@ -15,15 +15,27 @@ import Select from './select/Select.svelte' import ScriptPicker from './ScriptPicker.svelte' import { sendUserToast } from '$lib/toast' + import { untrack } from 'svelte' interface Props { config: AutoscalingConfig | undefined worker_tags: string[] | undefined + /** Whether the draft config gives the group any tags (worker_tags or dedicated workers). */ + group_has_tags: boolean + /** Tags reported by the group's live workers, which for agent workers come from their token. */ + reported_tags: string[] disabled: boolean eeOnly?: boolean } - let { config = $bindable(), worker_tags, disabled, eeOnly = false }: Props = $props() + let { + config = $bindable(), + worker_tags, + group_has_tags, + reported_tags, + disabled, + eeOnly = false + }: Props = $props() let test_input: number = $state(3) let healthCheckLoading: boolean = $state(false) let healthCheckResult: { success: boolean; error?: string } | null = $state(null) @@ -54,7 +66,9 @@ } } - let collapsed: boolean = $state(true) + let noTagsToCount = $derived(!!config?.enabled && !group_has_tags && !config.custom_tags?.length) + + let collapsed: boolean = $state(untrack(() => !noTagsToCount))
{/snippet} + {#if noTagsToCount} + { + if (config) config.custom_tags = [...reported_tags] + } + } + ] + : []} + > + This group has no worker tags and no custom tags to autoscale on, so queued jobs never trigger + a scale-out. Set custom tags under Advanced. For agent workers, set them to the tags in the + agents' token: agents take their tags from it, not from this config, so only jobs on matching + custom tags trigger a scale-out. + + {/if} +
{/if} - {#if !isAgent} + {#if !isAgent || config}
{#if canEditConfig} {#if width > 1000} @@ -1644,7 +1657,12 @@
{#snippet children()} - This group is formed with agent workers, there is no associated config. {#if $superadmin || $devopsRole} + {#if config} + This group is formed with agent workers, which ignore its config except for autoscaling. + {:else} + This group is formed with agent workers, there is no associated config. + {/if} + {#if $superadmin || $devopsRole} To modify the tags, generate a new
- - {#if worker_group?.[2] === false} + + {#if worker_group?.[2] === false || (workerGroups ?? {})[selectedTab]} {/if} {:else}