diff --git a/frontend/src/lib/components/runs/NoWorkerWithTagWarning.svelte b/frontend/src/lib/components/runs/NoWorkerWithTagWarning.svelte index a85d8e724f..7af0d8f77d 100644 --- a/frontend/src/lib/components/runs/NoWorkerWithTagWarning.svelte +++ b/frontend/src/lib/components/runs/NoWorkerWithTagWarning.svelte @@ -13,9 +13,11 @@ try { const existsWorkerWithTag = await WorkerService.existsWorkerWithTag({ tag }) noWorkerWithTag = !existsWorkerWithTag - timeout = setTimeout(() => { - lookForTag() - }, 1000) + if (noWorkerWithTag) { + timeout = setTimeout(() => { + lookForTag() + }, 1000) + } } catch (err) { console.error(err) }