add more help for activating dedicated worker

This commit is contained in:
Ruben Fiszel
2023-11-10 20:58:19 +01:00
parent 7459ab3b59
commit f8ab1593e6
2 changed files with 15 additions and 2 deletions
@@ -652,7 +652,14 @@
right: 'Script is run on dedicated workers'
}}
/>
{#if script.dedicated_worker}
<div class="py-2">
<Alert type="info" title="Require dedicated workers">
One worker in a worker group needs to be configured with dedicated worker
set to: <pre>{$workspaceStore}:{script.path}</pre>
</Alert>
</div>
{/if}
<svelte:fragment slot="header">
<Tooltip
>In this mode, the script is meant to be run on dedicated workers that run the
@@ -320,7 +320,13 @@
}}
bind:value={nconfig.dedicated_worker}
/>
<p class="text-2xs text-tertiary max-w-md mt-2"
<div class="py-2"
><Alert
type="info"
title="Script's runtime setting 'dedicated worker' must be toggled on as well"
/></div
>
<p class="text-2xs text-tertiary mt-2"
>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.</p