Skip to main content

Module settings

Module settings 

Source
Expand description

DRE’s settings and where each value came from.

A setting is chosen, highest first, by its command-line flag, its DRE_* environment variable, its key in dre_project.yml, then its default. [env] is the one place DRE reads its own environment variables; Settings records every resolved value with its source, for dre validate --verbose (and its JSON), run_results.json and the run’s log.

Structs§

Setting
One resolved setting.
Settings
Every resolved setting, in the order they were resolved.

Enums§

Source
Where a setting’s value came from.

Constants§

GITHUB_API_URL
The GitHub API DRE asks for releases (tests point it elsewhere): DRE_GITHUB_API_URL.
HTTP_TIMEOUT
Seconds a download may receive nothing: DRE_HTTP_TIMEOUT, flags: http_timeout.
KEEP_RUNS
How many runs of each Binding to keep: --keep-runs, DRE_KEEP_RUNS, flags: keep_runs.
PLUGINS_DIR
Where plugin packages are installed: DRE_PLUGINS_DIR.
PROFILES_DIR
Where profiles.yml is: --profiles-dir, DRE_PROFILES_DIR.
REGISTRY_URL
The plugin registry index: DRE_REGISTRY_URL.
ROW_CONCURRENCY
How many rows of a per-row output render and deliver at once: --row-concurrency, DRE_ROW_CONCURRENCY, over for_each.concurrency.
RUN_AT
The instant a scheduled run was scheduled for: DRE_RUN_AT.
RUN_DATE
run.date: DRE_RUN_DATE.
RUN_TIMEOUT
How long a run may take: --timeout, DRE_RUN_TIMEOUT, flags: run_timeout.
TARGET
The run’s target: --target, DRE_TARGET.
TARGET_PATH
The target path: --target-path, DRE_TARGET_PATH, target_path:.
THREADS
How many Bindings may run at once in the whole run: --threads, DRE_THREADS, over each connection entry’s threads:.
TIMEZONE
The run’s timezone: --timezone, DRE_TIMEZONE.

Functions§

env
A DRE_* environment variable’s value; set but empty counts as unset.
flag_or_env
The value of a setting given by flag, else the environment variable var, with its source.
run_settings
The settings a command line resolves before loading a project: the run’s timezone (--timezone, DRE_TIMEZONE), run.date (DRE_RUN_DATE) and the scheduled instant (DRE_RUN_AT).