Environment
Deployment stage for Datatailr compute processes.
Each environment is a fully isolated stage in the development and release lifecycle. Workflows, apps, services, and other jobs run in Docker containers scoped to the selected environment, so changes in one stage do not affect the others.
New jobs default to DEV. After validation, promote them through
PRE (staging) to PROD with
Job.promote().
When a job runs inside the platform, the active environment is read from
the DATATAILR_JOB_ENVIRONMENT variable (see
get_dt_env()).
Attributes:
-
DEV–Development environment for building and testing changes.
-
PRE–Pre-production (staging) environment for final validation.
-
PROD–Production environment for live workloads.
Examples:
>>> from datatailr import Environment
>>> from datatailr.scheduler import App
>>> app = App(name="my_app", environment=Environment.DEV)
>>> app.promote(from_environment=Environment.DEV)