CLI commands
- Besides the pipeline control and display in the Magento backend, different pipeline actions can also get executed with CLI commands:
Details
- Description
-
Command Description For more information about a pipeline, use the Magento backend step visualization or the dedicated CLI command
pipeline:details
-
The ID of the pipeline must get passed as argument
-
The pipeline ID can get received, e.g., with the status command
-
- Command
- Output
Execution Step
- Description
-
Command Description Individual steps can get executed or restarted with the CLI.
-
Any arguments regarding execution limit and other conditions get ignored
-
The Step ID to get processed must get passed as an argument
-
The Step ID can get received, e.g., with the details command
Steps that have already been processed or completed can also get executed again, regardless of the pipeline status
Only by a running of the Magento Consumer / PipelineRunner, does the step gets processed technical, the data of the step is transferred to the message queue, regardless of any conditions
-
- Command
- Output
Log output Step
- Description
-
Command Description During the processing of steps, the step log gets also written-
Processing processes and other information get logged
-
The step log can get viewed in the detailed display of a step in the Magento backend
-
The ID of the desired step must get passed as an argument
-
The step ID can get read out, e.g., with the
details
command
-
- Command
- Output
Heartbeat
- Description
-
Command Description A pipeline heartbeat allows the following listed actions-
The heartbeat performs Steps
-
The heartbeat creates pipelines
-
The heartbeat updates pipelines
The execution gets provided as a CLI command.
-
- Command
- Example / Output
Consumer
- Description
-
Command Description To process steps in a message queue, a Magento consumer gets required.
-
The consumer handles the communication between the Magento system and the configured message queue
The pending steps in the MQ are fetched by the runner(s) and processed with the executor logic
-
- Command
- Example / Output
Output of active steps
- Description
-
Command Description A separate CLI command can get used to output the number of running steps together with the number of enqueued steps.
As a recommendation, a deployment should not get rolled out until all ongoing processes within the pipelines have been completed
- Command
- Example / Output
Cancel Pipelines
-
Now, with the command
cancel
, a developer can abort all or certain pipelines with CLI -
When the command gets executed, it fetches the steps from the database and cancels the execution of the given steps
-
For steps in
Running
orEnqueued
orPaused
state, the consumer and all child processes get terminated
- Output
-
Output if answer to Question is "no" for a pipeline with 3 Steps, where one is running
Are you sure you want to abandon all running and enqueued pipelines? [y/n] n Following Steps were canceled: 63 (Pipeline-ID: 21) 64 (Pipeline-ID: 21)
bashOutput if answer to Question is "yes" for the same pipeline as aboveAre you sure you want to abandon all running and enqueued pipelines? [y/n] y Following Steps were canceled: 63 (Pipeline-ID: 21) 64 (Pipeline-ID: 21) 65 (Pipeline-ID: 21)
bash
Pause Pipeline
- Description
-
Description: Just pipelines with the status "pending/enqueued" are paused with their steps. Stop processing of a given pipeline - set status to "paused" Usage: pacemaker:pipeline:pause [options] Options: -i, --pipeline-ids=PIPELINE-IDS Pipeline ID(s) (optional); If several pipelines are to be paused, then specify the values comma-separated -m, --pipeline-names=PIPELINE-NAMES Comma separated list of pipeline names -a, --all Pause all pending and enqueued pipelines in system -h, --help Display help for the given command. When no command is given display help for the list command -q, --quiet Do not output any message -V, --version Display this application version --ansi|--no-ansi Force (or disable --no-ansi) ANSI output -n, --no-interaction Do not ask any interactive question -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
bash/ [START] tab: command example +
- Command
- Output
Resume Paused Pipeline
- Description
-
Description: Just pipelines with the status "paused" are resumed Continue processing of a given pipeline - set status to "pending" Usage: pacemaker:pipeline:resume [options] Options: -i, --pipeline-ids=PIPELINE-IDS Pipeline ID(s) (optional); If several pipelines are to be pending, then specify the values comma-separated -m, --pipeline-names=PIPELINE-NAMES Comma separated list of pipeline names -a, --all append all paused pipelines in system -h, --help Display help for the given command. When no command is given display help for the list command -q, --quiet Do not output any message -V, --version Display this application version --ansi|--no-ansi Force (or disable --no-ansi) ANSI output -n, --no-interaction Do not ask any interactive question -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
bash - Command
- Output
Step Condition Check
- Description
-
Description: Check and info step conditions Usage: pacemaker:pipeline:step:condition-check <step_id> Arguments: step_id ID of an existing step entry in DB
bash - Command
- Output