chargelink batch
Run a folder of inputs and continue or retry a batch later.
Reference syntax
usage: chargelink batch [-h] {run,resume,retry-failed} ...
positional arguments:
{run,resume,retry-failed}
options:
-h, --help show this help message and exit
Subcommands
Subcommand |
Purpose |
|---|---|
|
Run a folder of inputs as a named batch. |
|
Resume a named batch run. |
|
Retry failed items in a batch. |
run
Run a folder of inputs as a named batch.
CLI help
usage: chargelink batch run [-h] [--runtime-root RUNTIME_ROOT]
[--run-id RUN_ID]
folder
positional arguments:
folder
options:
-h, --help show this help message and exit
--runtime-root RUNTIME_ROOT
--run-id RUN_ID
Production examples
Run a folder of input JSON files as one batch.
chargelink batch run 'batch_inputs' --runtime-root '.tmp/runtime' --run-id 'batch_a'
Run a second folder as a release smoke batch.
chargelink batch run 'artifacts/release_batch_inputs' --runtime-root '.tmp/runtime' --run-id 'release_batch'
resume
Resume a named batch run.
CLI help
usage: chargelink batch resume [-h] [--runtime-root RUNTIME_ROOT] run_id
positional arguments:
run_id
options:
-h, --help show this help message and exit
--runtime-root RUNTIME_ROOT
Production examples
Resume a named batch.
chargelink batch resume 'batch_a' --runtime-root '.tmp/runtime'
Resume a release batch.
chargelink batch resume 'release_batch' --runtime-root '.tmp/runtime'
retry-failed
Retry failed items in a batch.
CLI help
usage: chargelink batch retry-failed [-h] [--runtime-root RUNTIME_ROOT] run_id
positional arguments:
run_id
options:
-h, --help show this help message and exit
--runtime-root RUNTIME_ROOT
Production examples
Retry failed items in a named batch.
chargelink batch retry-failed 'batch_a' --runtime-root '.tmp/runtime'
Retry failed items in a release batch.
chargelink batch retry-failed 'release_batch' --runtime-root '.tmp/runtime'