Skip to main content

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.

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
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
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
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
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
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
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
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
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
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
http://workflow-backend

WORKFLOW_TEMPORAL_ACTIVITY_TASK_POLLERS

The number of Temporal activity task pollers that concurrently run.

Type number
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
2

WORKFLOW_TEMPORAL_CLUSTER_FRONTEND_HOST

The hostname for the Temporal cluster. If you're using Temporal Cloud, your host may end with .tmprl.cloud. This environment variable does not need to be set if using Retool-managed Temporal cluster.

Type string
Format Plain Text
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
org.example.tmprl.cloud

WORKFLOW_TEMPORAL_CLUSTER_FRONTEND_PORT

The port for the Temporal cluster.

Type number
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
7233

WORKFLOW_TEMPORAL_CLUSTER_NAMESPACE

The namespace for the Temporal cluster.

Type string
Format Plain Text
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
workflows

WORKFLOW_TEMPORAL_CONCURRENT_ACTIVITIES_LIMIT

The maximum number of concurrent activities that can be executed by a single workflow. Refer to the Temporal documentation for more information.

Type number
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
10

WORKFLOW_TEMPORAL_CONCURRENT_TASKS_LIMIT

The maximum number of concurrent tasks that can be executed by a single workflow. Refer to the Temporal documentation for more information.

Type number
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
10

WORKFLOW_TEMPORAL_OPENTELEMETRY_COLLECTOR

Type string
Format Plain Text
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
http://open-telemetry-collector-opentelemetry-collector:4318

WORKFLOW_TEMPORAL_SERVER_NAME_OVERRIDE

The server name override for the Temporal cluster. This overrides the target name (SNI) used for TLS host name checking. It can be useful if you have reverse proxy in front of Temporal server and you need to override the SNI to direct traffic to the appropriate backend server based on custom routing rules. Connections can be refused if the provided SNI does not match the expected host. Adding this override should be done with care. This does not need to be set if using Retool-managed Temporal cluster.

Type string
Format Plain Text
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
other.domain.tmprl.cld

WORKFLOW_TEMPORAL_SERVER_ROOT_CA_CRT

Base64 encoded PEM certificate for the root CA of the Temporal cluster. This does not need to be set if using Retool-managed Temporal cluster.

Type string
Format Plain Text
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
UXVpcyBjb21tb2RvIGV4ZXJjaXRhd

WORKFLOW_TEMPORAL_STICKY_CACHE_SIZE

Type number
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
100

WORKFLOW_TEMPORAL_TLS_CRT

Base64 encoded certificate for TLS client certification pair. See Temporal documentation for more details. This does not need to be set if using Retool-managed Temporal cluster.

Type string
Format Plain Text
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
UXVpcyBjb21tb2RvIGV4ZXJjaXRhd

WORKFLOW_TEMPORAL_TLS_ENABLED

Whether to enable TLS for the Temporal cluster. You can set this to true if you use your own Temporal Cloud. This does not need to be set if using Retool-managed Temporal cluster.

Type boolean
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
true

WORKFLOW_TEMPORAL_TLS_KEY

Base64 encoded private key for TLS client certification pair. This does not need to be set if using Retool-managed Temporal cluster.

Type string
Format Plain Text
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
c2VjcmV0X2tleQ==

WORKFLOW_TEMPORAL_WORKER_SHUTDOWN_GRACE_TIME

The timeout, in minutes, to wait for pending workflows to complete before the Temporal worker gracefully shuts down. If the worker does not shut down within this time, it is forcefully terminated.

Type number
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
15

WORKFLOW_TEMPORAL_WORKFLOW_TASK_POLLERS

The number of Temporal workflow task pollers that concurrently run.

Type number
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
10

WORKFLOW_WORKER_HEALTHCHECK_PORT

The port for the /api/checkHealth health check endpoint for the Temporal worker.

Type number
Mutability
ControlUsage
ConfigurationUpdate the deployment's configuration file.
Required Optional
Examples
3005