{#if !$userStore?.operator} (metadataOpen = false)}> Metadata Runtime Generated UI The arguments are synced with the main signature but you may refine the parts that cannot be inferred from the type directly. Schedule
{#if lockedLanguage}
As a forked script, the language '{script.language}' cannot be modified.
{/if}
{#each langs as [label, lang] (lang)} {@const isPicked = (lang == script.language && template == 'script') || (template == 'docker' && lang == 'docker')} {label} is only available with an enterprise license {/each}
Tag this script's purpose within flows such that it is available as the corresponding action. { template = 'script' script.kind = detail initContent(script.language, detail, template) }} > {#each scriptKindOptions as { value, title, desc, documentationLink, Icon }} {/each}
The script will be executed on a worker configured to listen to this worker group tag (queue). For instance, you could setup an "highmem", or "gpu" tag.
{ if (script.cache_ttl && script.cache_ttl != undefined) { script.cache_ttl = undefined } else { script.cache_ttl = 300 } }} options={{ right: 'Cache the results for each possible inputs' }} /> How long to the keep cache valid {#if script.cache_ttl} {:else} {/if}
{ if (script.timeout && script.timeout != undefined) { script.timeout = undefined } else { script.timeout = 300 } }} options={{ right: 'Add a custom timeout for this script' }} /> Timeout duration {#if script.timeout} {:else} {/if}
{ if (script.restart_unless_cancelled) { script.restart_unless_cancelled = undefined } else { script.restart_unless_cancelled = true } }} options={{ right: 'Restart upon ending unless cancelled' }} />
{ if (script.dedicated_worker) { script.dedicated_worker = undefined } else { script.dedicated_worker = true } }} options={{ right: 'Script is run on dedicated workers' }} /> {#if script.dedicated_worker}
One worker in a worker group needs to be configured with dedicated worker set to:
{$workspaceStore}:{script.path}
{/if} In this mode, the script is meant to be run on dedicated workers that run the script at native speed. Can reach >1500rps per dedicated worker. Only available on enterprise edition and for Python3, Deno and Bun. For other languages, the efficiency is already on par with deidcated workers since they do not spawn a full runtime
WARNING: This settings ONLY applies to synchronous webhooks or when the script is used within a flow. If used individually, this script must be triggered using a synchronous endpoint to have the desired effect.

The logs, arguments and results of the job will be completely deleted from Windmill once it is complete and the result has been returned.

The deletion is irreversible. {#if !$enterpriseLicense}

This option is only available on Windmill Enterprise Edition. {/if}
{ if (script.delete_after_use) { script.delete_after_use = undefined } else { script.delete_after_use = true } }} options={{ right: 'Delete logs, arguments and results after use' }} />
{#if !isCloudHosted()}
0} on:change={() => { if (script.priority) { script.priority = undefined } else { script.priority = 100 } }} options={{ right: 'Label as high priority' }} > { if (script.priority && script.priority > 100) { script.priority = 100 } else if (script.priority && script.priority < 0) { script.priority = 0 } }} /> Jobs from script labeled as high priority take precedence over the other jobs when in the jobs queue. {#if !$enterpriseLicense}This is a feature only available on enterprise edition.{/if}
{/if}
When this option is enabled, manual executions of this script are invisible to users other than the user running it, including the owner(s). This setting can be overridden when this script is run manually from the advanced menu.
{ if (script.visible_to_runner_only) { script.visible_to_runner_only = undefined } else { script.visible_to_runner_only = true } }} options={{ right: 'Make runs invisible to others' }} />
{#if !isCloudHosted()}
Additional static custom env variables to pass to the script. {#if script.envs && script.envs.length > 0} Static envs variables are not passed in preview but solely on deployed scripts. {/if}
Format is: `{'='}` {#if Array.isArray(script.envs ?? [])} {#each script.envs ?? [] as v, i}
{/each} {/if}
{/if}
{#if $scheduleStore.enabled} {/if}
{ currentTarget.select() }} />
{#if $enterpriseLicense && initialPath != ''} {/if}
{ saveDraft() }} bind:editor bind:this={scriptEditor} bind:schema={script.schema} path={script.path} bind:code={script.content} lang={script.language} {initialArgs} kind={script.kind} {template} tag={script.tag} />
{:else} Script Builder not available to operators {/if}