Skip to content

Commit c4e1f02

Browse files
authored
docs: document use of .env file in executors (#4033)
1 parent c8731ba commit c4e1f02

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docs/cloud/features/scheduler/scheduler.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,12 @@ No ingress is required from executor containers to user environments. All networ
220220

221221
While the exact requirements for executors vary depending on the customer's specific needs and primarily depend on the Python models being run (whose requirements can vary greatly), we recommend a minimum of 2GB of RAM and 1 vCPU for each executor.
222222

223+
### '.env' file
224+
225+
Environment variables may also be passed to SQLMesh by mounting a `.env` file into the docker image and specifying it's full path with the environment variable `TCLOUD_ENV_FILE`.
226+
227+
**Note** These variables are only read at SQLMesh run time so variables that are used by `tcloud` such as `TCLOUD_URL`, `TCLOUD_TOKEN`, etc. must be passed as variables.
228+
223229
### Health checks
224230

225231
In production settings, we recommend setting up health checks as well, as these can be helpful in understanding the health of executors. When calling via the entrypoint, the health checks are as follows:

0 commit comments

Comments
 (0)