- As a forked script, the language '{script.language}' cannot be modified.
-
- {/if}
-
- {#each langs as [label, lang]}
- {@const isPicked = script.language == lang && template == 'script'}
-
-
- {label} is only available with an enterprise license
-
- {/each}
-
+
+
+
+
Summary
-
-
-
-
Description
-
-
-
Concurrency limits
-
-
-
-
-
-
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.
Dedicated WorkersIn this mode, the script is meant to be run on dedicated workers that run the script at
- native speed. Can reach >400rps per dedicated worker. Only available on enterprise edition
- and for the Bun language.
- {
- if (script.dedicated_worker) {
- script.dedicated_worker = undefined
- } else {
- script.dedicated_worker = true
- }
- }}
- options={{
- right: 'Script is run on dedicated workers'
- }}
- />
-
- {#if !isCloudHosted()}
-
- Custom env variables
-
- Additional static custom env variables to pass to the script.
-
-
-
- Format is: `{'='}`
- {#if Array.isArray(script.envs ?? [])}
- {#each script.envs ?? [] as v, i}
-
-
-
- {/each}
- {#if script.envs && script.envs.length > 0}
-
- Static envs variables are not passed in preview but solely on deployed scripts.
+ Script kind
+
+ Tag this script's purpose within flows such that it is available as the
+ corresponding action.
+
+
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.
Dedicated WorkersIn 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 the Bun language.
+ {
+ if (script.dedicated_worker) {
+ script.dedicated_worker = undefined
+ } else {
+ script.dedicated_worker = true
+ }
+ }}
+ options={{
+ right: 'Script is run on dedicated workers'
+ }}
+ />
+
+ {#if !isCloudHosted()}
+
+ Custom env variables
+
+ Additional static custom env variables to pass to the script.
+
+
+
+ Format is: `{'='}`
+ {#if Array.isArray(script.envs ?? [])}
+ {#each script.envs ?? [] as v, i}
+
+
+
+
+ {/each}
+ {#if script.envs && script.envs.length > 0}
+
+ Static envs variables are not passed in preview but solely on deployed
+ scripts.
+ {/if}
+ {/if}
+