Workflows environment variables
Reference documentation for Retool Workflows-related environment variables.
Workflow environment variables available for use with self-hosted Retool deployments. These environment variables specifically can be applied to the api, workflows-worker, and workflows-backend services.
Only configure environment variables when needed. You can configure many environment variables from your organization's Settings rather than directly editing your deployment's configuration file.
You must restart your instance after setting any variables for them to take effect.
AGENT_EVALS_S3_ACCESS_KEY_ID
The Amazon S3 access key ID for running agent evals.
| Type | string |
| Configurability | Update the deployment's configuration file. |
| Required | Optional |
| Default | null |
Examples
AGENT_EVALS_S3_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
AGENT_EVALS_S3_BUCKET
The Amazon S3 bucket for running agent evals.
| Type | string |
| Configurability | Update the deployment's configuration file. |
| Required | Optional |
| Default | null |
Examples
AGENT_EVALS_S3_BUCKET=retool-agent-evals
AGENT_EVALS_S3_REGION
The Amazon S3 region for running agent evals.
| Type | string |
| Configurability | Update the deployment's configuration file. |
| Required | Optional |
| Default | null |
Examples
AGENT_EVALS_S3_REGION=us-west-2
AGENT_EVALS_S3_SECRET_ACCESS_KEY
The Amazon S3 secret access key for running agent evals.
| Type | string |
| Configurability | Update the deployment's configuration file. |
| Required | Optional |
| Default | null |
Examples
AGENT_EVALS_S3_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
CODE_EXECUTOR_INGRESS_DOMAIN
The domain for the code-executor service that executes arbitrary user-defined JavaScript and Python code with installed custom libraries. The value depends on your deployment configuration, but must include a protocol (http:// or https://).
| Type | string |
| Format | Plain Text |
| Configurability | Update the deployment's configuration file. |
| Required | Optional |
| Default | null |
Examples
CODE_EXECUTOR_INGRESS_DOMAIN=code-executor.example.com
CUSTOM_API_KEY
An API key to authenticate workflow webhook requests. Add to the request as an x-api-key header to trigger workflows.
| Type | string |
| Configurability | Update the deployment's configuration file. |
| Required | Optional |
| Default | null |
Examples
CUSTOM_API_KEY=retool_wk_2ed0cfe975474f4091fbe603d975d7b7
TEMPORAL_TASKQUEUE_WORKFLOW
The task queue for the Temporal Cluster. Used by clients connecting to Temporal for all Retool Workflow-related requests (enqueue, query, etc.). This value should match WORKER_TEMPORAL_TASKQUEUE.
| Type | string |
| Format | Plain Text |
| Configurability | Update the deployment's configuration file. |
| Required | Optional |
| Default | workflows |
Examples
TEMPORAL_TASKQUEUE_WORKFLOW=workflows
WORKER_TEMPORAL_TASKQUEUE
The task queue for the Temporal worker. Used by workers connecting to Temporal for all Retool Workflow-related requests (enqueue, query, etc.). This value should match TEMPORAL_TASKQUEUE_WORKFLOW.
| Type | string |
| Format | Plain Text |
| Configurability | Update the deployment's configuration file. |
| Required | Optional |
| Default | workflows |
Examples
WORKER_TEMPORAL_TASKQUEUE=workflows
WORKFLOW_BACKEND_HOST
The hostname for all Retool Workflow-related backend requests, such as querying resources, updating workflow status, and storing block results and logs. The value depends on your deployment configuration, but must include a protocol (http:// or https://).
| Type | string |
| Format | Plain Text |
| Configurability | Update the deployment's configuration file. |
| Required | Optional |
| Default | null |
Examples
WORKFLOW_BACKEND_HOST=http://workflow-backend
WORKFLOW_BLOCK_STORAGE_LOCATION
The storage location for workflow block results. Defaults to postgres to store results in your PostgreSQL database. Set to s3 to store results in Amazon S3, which reduces database load for high-volume deployments. When set to s3, you must also configure WORKFLOW_S3_BUCKET, WORKFLOW_S3_REGION, WORKFLOW_S3_ACCESS_KEY_ID, and WORKFLOW_S3_SECRET_ACCESS_KEY.
| Type | string | ||||||
| Configurability | Update the deployment's configuration file. | ||||||
| Required | Optional | ||||||
| Allowed Values |
| ||||||
| Default | postgres |
Examples
WORKFLOW_BLOCK_STORAGE_LOCATION=postgres
WORKFLOW_BLOCK_STORAGE_LOCATION=s3
WORKFLOW_S3_ACCESS_KEY_ID
The AWS access key ID with read and write permissions to the S3 bucket specified in WORKFLOW_S3_BUCKET. Required when WORKFLOW_BLOCK_STORAGE_LOCATION is s3.
| Type | string |
| Configurability | Update the deployment's configuration file. |
| Required | Optional |
| Default | null |
Examples
WORKFLOW_S3_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
WORKFLOW_S3_BUCKET
The name of the Amazon S3 bucket used to store workflow block results. Required when WORKFLOW_BLOCK_STORAGE_LOCATION is s3.
| Type | string |
| Configurability | Update the deployment's configuration file. |
| Required | Optional |
| Default | null |
Examples
WORKFLOW_S3_BUCKET=my-retool-workflow-results
WORKFLOW_S3_REGION
The AWS region of the S3 bucket specified in WORKFLOW_S3_BUCKET. Required when WORKFLOW_BLOCK_STORAGE_LOCATION is s3.
| Type | string |
| Configurability | Update the deployment's configuration file. |
| Required | Optional |
| Default | null |
Examples
WORKFLOW_S3_REGION=us-east-1
WORKFLOW_S3_SECRET_ACCESS_KEY
The AWS secret access key for the IAM user specified in WORKFLOW_S3_ACCESS_KEY_ID. Required when WORKFLOW_BLOCK_STORAGE_LOCATION is s3.
| Type | string |
| Configurability | Update the deployment's configuration file. |
| Required | Optional |
| Default | null |
Examples
WORKFLOW_S3_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY