Skip to Content
Environment variables

Supervisor

Environment variables for the supervisor container.

NameRequiredDefaultDescription
Required settings
TRIGGER_API_URLYes—Trigger.dev API URL. Should point at the webapp.
TRIGGER_WORKER_TOKENYes—Worker token (can be a file path with file://).
MANAGED_WORKER_SECRETYes—Managed worker secret. Needs to match webapp value.
OTEL_EXPORTER_OTLP_ENDPOINTYes—OTel exporter endpoint. Point at: <webapp-url>/otel
Worker instance
TRIGGER_WORKER_INSTANCE_NAMENorandom UUIDWorker instance name. Set to spec.nodeName on k8s.
TRIGGER_WORKER_CELL_NAMENo—Name of the worker cluster this supervisor serves. Stamped on each run it starts.
TRIGGER_WORKER_HEARTBEAT_INTERVAL_SECONDSNo30Worker heartbeat interval (seconds).
Workload API settings
TRIGGER_WORKLOAD_API_ENABLEDNotrueEnable workload API. Runs use this to perform actions.
TRIGGER_WORKLOAD_API_PROTOCOLNohttpWorkload API protocol (http/https).
TRIGGER_WORKLOAD_API_DOMAINNo—Workload API domain. Keep empty for auto-detection.
TRIGGER_WORKLOAD_API_HOST_INTERNALNo0.0.0.0Workload API internal host.
TRIGGER_WORKLOAD_API_PORT_INTERNALNo8020Workload API internal port.
TRIGGER_WORKLOAD_API_PORT_EXTERNALNo8020Workload API external port.
Runner settings
RUNNER_HEARTBEAT_INTERVAL_SECONDSNo—Runner heartbeat interval (seconds).
RUNNER_SNAPSHOT_POLL_INTERVAL_SECONDSNo—Runner snapshot poll interval (seconds).
RUNNER_ADDITIONAL_ENV_VARSNo—Additional runner env vars (CSV).
RUNNER_PRETTY_LOGSNofalsePretty logs for runner.
Dequeue settings
TRIGGER_DEQUEUE_ENABLEDNotrueEnable dequeue to pull runs from the queue.
TRIGGER_DEQUEUE_INTERVAL_MSNo250Dequeue interval (ms).
TRIGGER_DEQUEUE_IDLE_INTERVAL_MSNo1000 (1s)Dequeue idle interval (ms).
TRIGGER_DEQUEUE_MAX_CONSUMER_COUNTNo1Max dequeue consumer count.
RELEASE_UNSTARTED_RUNS_ENABLEDNofalseSet to true to requeue a run straight away when its container or pod can't be created, rather than after the pending execution timeout. Limited by RUN_RELEASES_PER_MINUTE.
RELEASE_FAILED_POD_RUNS_ENABLEDNofalseSet to true to requeue a run straight away when its pod fails before the run starts, rather than after the pending execution timeout. Independent of RELEASE_UNSTARTED_RUNS_ENABLED; the two share RUN_RELEASES_PER_MINUTE. Needs FAILED_POD_HANDLER_ENABLED.
RUN_RELEASES_PER_MINUTENo5Different runs released within a minute, by either release flag, past which every release waits for the timeout again until a slot frees, a run already released included. 0 withholds every release; blank means the default.
Docker settings
DOCKER_API_VERSIONNov1.41Docker API version. You should probably not touch this.
DOCKER_STRIP_IMAGE_DIGESTNotrueStrip image digest in Docker. Turning off can cause issues.
DOCKER_ENFORCE_MACHINE_PRESETSNotrueEnforce Docker machine cpu and memory limits.
DOCKER_AUTOREMOVE_EXITED_CONTAINERSNotrueAuto-remove exited containers.
DOCKER_RUNNER_NETWORKSNohostDocker runner networks (CSV).
Registry auth
DOCKER_REGISTRY_URLNo—Docker registry URL, e.g. docker.io.
DOCKER_REGISTRY_USERNAMENo—Docker registry username.
DOCKER_REGISTRY_PASSWORDNo—Docker registry password.
Kubernetes settings
KUBERNETES_FORCE_ENABLEDNofalseForce Kubernetes mode.
KUBERNETES_NAMESPACENodefaultThe namespace that runs should be in.
KUBERNETES_WORKER_NODETYPE_LABELNov4-workerNodes for runs need nodetype=<this>. Empty: any node.
KUBERNETES_RUNNER_TOLERATIONSNo—Run pod tolerations. CSV: key=value:effect/key:effect.
KUBERNETES_ORG_PLACEMENT_OVERRIDESNo—Per-org run pod placement. JSON keyed by internal org ID.
KUBERNETES_IMAGE_PULL_SECRETSNo—Image pull secrets (CSV).
KUBERNETES_EPHEMERAL_STORAGE_SIZE_LIMITNo10GiEphemeral storage size limit. Applies to all runs.
KUBERNETES_EPHEMERAL_STORAGE_SIZE_REQUESTNo2GiEphemeral storage size request. Applies to all runs.
KUBERNETES_POD_RESERVED_SOURCE_PORTSNo—Ports runs never use as the source port of an outbound connection, so they can't clash with services on those ports. CSV of ports or ranges, e.g. 50080,50081 or 50080-50090. Sets the pod's net.ipv4.ip_local_reserved_ports sysctl.
Metrics
METRICS_ENABLEDNotrueEnable metrics.
METRICS_COLLECT_DEFAULTSNotrueCollect default metrics.
METRICS_HOSTNo127.0.0.1Metrics host.
METRICS_PORTNo9090Metrics port.
Pod cleaner
POD_CLEANER_ENABLEDNotrueEnable pod cleaner.
POD_CLEANER_INTERVAL_MSNo10000 (10s)Pod cleaner interval (ms). Best not to touch this.
POD_CLEANER_BATCH_SIZENo500Pod cleaner batch size.
Failed pod handler
FAILED_POD_HANDLER_ENABLEDNotrueEnable failed pod handler.
FAILED_POD_HANDLER_RECONNECT_INTERVAL_MSNo1000 (1s)Failed pod handler reconnect interval (ms).
FAILED_POD_HANDLER_WATCH_TIMEOUT_SECONDSNo300 (5m)How long the server keeps each failed pod watch open (s).
RUNNER_KILL_REPORTS_ENABLEDNotrueFail a run straight away when its pod is killed, as out of memory only if Kubernetes reports OOMKilled.
Debug
DEBUGNofalseEnable debug logs.
SEND_RUN_DEBUG_LOGSNofalseSend run debug logs to the platform.
Not used for self-hosting
TRIGGER_WARM_START_URLNo—Warm start URL.
TRIGGER_CHECKPOINT_URLNo—Checkpoint URL.
TRIGGER_METADATA_URLNo—Metadata URL.
RESOURCE_MONITOR_ENABLEDNofalseEnable resource monitor.
RESOURCE_MONITOR_OVERRIDE_CPU_TOTALNo—Override CPU total for resource monitor.
RESOURCE_MONITOR_OVERRIDE_MEMORY_TOTAL_GBNo—Override memory total (GB) for resource monitor.

Was this page helpful?

Last updated

Edit on GitHub