{#if nconfig?.worker_tags != undefined}
{#each nconfig.worker_tags as tag}
{tag}
{
if (nconfig != undefined) {
dirty = true
nconfig.worker_tags = nconfig?.worker_tags?.filter((t) => t != tag) ?? []
if (nconfig.priority_tags) {
delete nconfig.priority_tags[tag]
}
selectedPriorityTags = selectedPriorityTags.filter((t) => t != tag) ?? []
}
}}
>
{/each}
{
if (nconfig != undefined) {
nconfig.worker_tags = defaultTags.concat(nativeTags)
dirty = true
}
}}
>
Reset to all tags {defaultTags.concat(nativeTags).join(', ')}
{
if (nconfig != undefined) {
nconfig.worker_tags = defaultTags
dirty = true
}
}}
>
Reset to all tags minus native ones {defaultTags.join(', ')}
{
if (nconfig != undefined) {
nconfig.worker_tags = nativeTags
dirty = true
}
}}
>
Reset to native tags {nativeTags.join(', ')}
{#if nconfig?.worker_tags !== undefined && nconfig?.worker_tags.length > 0}
Jobs with the following high-priority tags will be picked up in priority by this
worker.
{#if !enterpriseLicense}
This is a feature only available in enterprise edition.
{/if}
{
if (e.detail.type === 'add') {
if (nconfig.priority_tags) {
nconfig.priority_tags[e.detail.option] = 100
}
dirty = true
} else if (e.detail.type === 'remove') {
if (nconfig.priority_tags) {
delete nconfig.priority_tags[e.detail.option]
}
dirty = true
} else {
console.error(
`Priority tags multiselect - unknown event type: '${e.detail.type}'`
)
}
}}
options={nconfig?.worker_tags}
selectedOptionsDraggable={false}
placeholder="High priority tags"
/>
{/if}
{/if}
{:else if selected == 'dedicated'}
{#if nconfig?.dedicated_worker != undefined}
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}