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§
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, overfor_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’sthreads:. - 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 variablevar, 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).