{#snippet header()} 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. {/snippet}
{#snippet header()} Allowed concurrency within a given timeframe {/snippet} { if (script.concurrent_limit && script.concurrent_limit != undefined) { script.concurrent_limit = undefined script.concurrency_time_window_s = undefined script.concurrency_key = undefined } else { script.concurrent_limit = 1 } }} options={{ right: 'Concurrency limits' }} /> {#if Boolean(script.concurrent_limit)}
{/if}
{#snippet header()} Cache the results for each possible inputs {/snippet}
!!script.cache_ttl, (v) => (script.cache_ttl = v ? 300 : undefined)} options={{ right: 'Cache the results for each possible inputs' }} /> {#if script.cache_ttl}
How long to keep the cache valid
script.cache_ignore_s3_path, (v) => (script.cache_ignore_s3_path = v || undefined) } options={{ right: 'Ignore S3 Object paths for caching purposes', rightTooltip: 'If two S3 objects passed as input have the same content, they will hit the same cache entry, regardless of their path.' }} /> {/if}
{#snippet header()} Add a custom timeout for this script {/snippet}
{ if (script.timeout && script.timeout != undefined) { script.timeout = undefined } else { script.timeout = 300 } }} options={{ right: 'Add a custom timeout for this script' }} /> {#if Boolean(script.timeout)} Timeout duration {/if}
{#snippet header()} Debounce Jobs {/snippet}
{#snippet header()} Restart the script upon ending unless cancelled {/snippet} { script.restart_unless_cancelled = script.restart_unless_cancelled ? undefined : true }} options={{ right: 'Restart upon ending unless cancelled' }} />
{#snippet header()} 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, Bun and Bunnative. {/snippet} { script.dedicated_worker = script.dedicated_worker ? undefined : true }} options={{ right: 'Script is run on dedicated workers' }} /> {#if script.dedicated_worker}
A worker group needs to be configured to listen to this script. Select it in the dedicated workers section of the worker group configuration.
{/if}
{#snippet header()} The logs, arguments and results of the job will be completely deleted from Windmill after the specified delay once it is complete. Set to 0 for immediate deletion. The deletion is irreversible. This settings ONLY applies when the script is used within a flow or triggered synchronously. {/snippet}
{ script.delete_after_secs = script.delete_after_secs != null ? undefined : 0 }} options={{ right: 'Delete logs, arguments and results after completion' }} /> {#if script.delete_after_secs != null} {/if}
{#if !isCloudHosted()}
{#snippet header()} 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} {/snippet} 0} on:change={() => { script.priority = script.priority ? undefined : 100 }} options={{ right: 'Label as high priority' }} > {#snippet right()} { if (script.priority && script.priority > 100) { script.priority = 100 } else if (script.priority && script.priority < 0) { script.priority = 0 } }} /> {/snippet}
{/if}