{ openDelete = false }} on:confirmed={async () => { deleteWorkerGroup() openDelete = false }} >
Are you sure you want to remove this worker group {name}?
{ openClean = false }} on:confirmed={async () => { const ndate = Math.floor(Date.now() / 1000) const withCacheConfig = { ...nconfig, cache_clear: ndate } await ConfigService.updateConfig({ name: 'worker__' + name, requestBody: withCacheConfig }) if (config) { config.cache_clear = ndate } sendUserToast('Worker caches clearing in 5s. Require a restart.') dispatch('reload') openClean = false }} >
Are you sure you want to clean the cache of all workers of this worker group (will also restart the workers and expect supervisor to restart them) ?
drawer.closeDrawer()} title="Edit worker config '{name}'"> {#if !$enterpriseLicense} Workers can still have their WORKER_TAGS passed as env. Dedicated workers are an enterprise only feature.
{/if} { dirty = true if (nconfig == undefined) { nconfig = {} } if (e.detail == 'dedicated') { nconfig.dedicated_worker = '' nconfig.worker_tags = undefined } else { nconfig.dedicated_worker = undefined nconfig.worker_tags = [] } }} class="mb-4" > {#if selected == 'normal'}
{#if nconfig?.worker_tags != undefined}
{#each nconfig.worker_tags as tag}
{tag}
{/each}
{#if nconfig?.worker_tags !== undefined && nconfig?.worker_tags.length > 0} {/if}
{/if}
{:else if selected == 'dedicated'} {#if nconfig?.dedicated_worker != undefined} { dirtyCode = true dirty = true }} 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.

{/if} {/if}
{#if dirtyCode}
Init script has changed, once applied, the workers will restart to apply it.
{/if} { if (config) { dirty = true dirtyCode = true const code = e.detail if (code != '') { nconfig.init_bash = code } else { nconfig.init_bash = undefined } } }} />
{#if dirty}
Non applied changes
{/if}

{name}

{#if $superadmin} {#if config} {/if} {:else if config} config {JSON.stringify(config, null, 4)} {/if} {#if activeWorkers > 1} {activeWorkers} Workers Number of workers active in the last 10s {/if}