(metadataOpen = false)}>
Path
Summary
Language
{#if lockedLanguage}
As a forked script, the language '{script.language}' cannot be modified.
{/if}
{#each langs as [label, lang]}
{@const isPicked = script.language == lang && template == 'script'}
{
let lastTemplate = template
template = 'script'
initContent(lang, script.kind, template)
script.language = lang
if (lastTemplate != template) {
setCode(script.content)
}
}}
disabled={lockedLanguage}
>
{label}
{/each}
{#if SCRIPT_SHOW_PSQL}
{
let lastTemplate = template
template = 'pgsql'
initContent(Script.language.DENO, script.kind, template)
script.language = Script.language.DENO
if (lastTemplate != template) {
setCode(script.content)
}
}}
>
PostgreSQL
{/if}
{
if (isCloudHosted()) {
sendUserToast(
'You cannot use Docker scripts on the multi-tenant platform. Use a dedicated instance or self-host windmill instead.',
true,
[
{
label: 'Learn more',
callback: () => {
window.open('https://docs.windmill.dev/docs/advanced/docker', '_blank')
}
}
]
)
return
}
let lastTemplate = template
template = 'docker'
initContent(Script.language.BASH, script.kind, template)
script.language = Script.language.BASH
if (lastTemplate != template) {
setCode(script.content)
}
}}
>
Docker
Description
Worker group tag The script will be executed on a worker configured to accept its worker group tag. For
instance, you could setup an "highmem", or "gpu" worker group.
{#if $workerTags}
{#if $workerTags?.length > 0}
{
if (script.tag == '') {
script.tag = undefined
}
}}
>
{#if script.tag}
reset to default
{:else}
Worker Group
{/if}
{#each $workerTags ?? [] as tag (tag)}
{tag}
{/each}
{:else}
No custom worker group defined on this instance
{/if}
{/if}