@task
The @task
decorator is used to define automation metadata and information about the runtime environment that will be provisioned to execute it.
The only required argument for the @task
decorator is the name
argument. The name
must be unique per workspace; changing the name
will create a new automation or overwrite an existing automation if the name
already exists.
Arguments
The name of the automation.
The plugins to install in the automation. Supported values: CLAUDE_CODER
.
CLAUDE_CODER
adds Node to your automation’s runtime and installs the Claude CLI.
The environment variables that are required to run your automation. Automations cannot be enabled when these are not defined.
The runner to use for the automation. Supported values: small.cpu
, medium.cpu
, large.cpu
, xlarge.cpu
.
GPU
runners are available on request. Please reach out to us at support@blocksorg.com to request access.
The runtime to use for the automation. Supported values: python3.9
, python3.10
, python3.11
, python3.12
.