CLI
minigate runs a validated .pipeline file against one or more input sources.
Usage
minigate -f PIPELINE_FILE [options] {- | input1 [input2 ...]}
-f/--fileis requiredat least one input source or
-is required-means stdin for file-based formats such ascsv,tsv, andvarlistsPIPELINE_FILEitself must be a real file path
Options
Runtime Overrides
These options override values from the pipeline file:
-pp N,--pipelines Noverride
pipelines
-tp N,--tasks Noverride
tasks
-l key=value,--limit key=valueoverride or add one resource limit
may be specified multiple times
Output Control
-n,--dry-runrender expanded command lines without executing
run_shell(...)
-v,--verboseprint expanded command lines while executing
repeated flags such as
-v -vare accepted, although the current output level is the same for any value greater than zero
Input Interpretation
The meaning of positional inputs depends on format:
format argseach positional input becomes one pipeline row
direct scalar reference is
{arg}
format csveach positional input is a CSV file
format tsveach positional input is a TSV file
format varlistseach positional input is a varlists file
Multiple input files are consumed in argument order.
Dry-Run and Verbose Output
Both -n and -v render fully expanded command lines.
Example:
[1]run(2) : command arg1 arg2
command arg3 arg4
The left-hand prefix shows:
stage number
statement kind (
runorrun_list)number of concrete commands launched from that statement
Exit Codes
0successful completion
1general failure
This includes:
parse errors
static validation errors
runtime row errors
task or pipeline failures
accept_retvalsviolations
Fail-Fast Behavior
minigate is intentionally fail-fast.
If any of the following occurs:
runtime row error
task failure
pipeline failure
accept_retvalsviolation
then minigate:
stops submitting new pipelines
lets the surrounding
Scheduler(..., exception_exit_policy="fail_fast")start fail-fast cleanupcloses the scheduler before returning to the CLI
exits with a non-zero status