Pipeline and step conditions
- With Pipeline and
StepConditions
, criteria can get defined if and when: -
-
A pipeline gets created
-
or a step may get executed
-
PipelineConditions
Pipeline conditions define whether a pipeline may get automated or to which criteria it may get created
-
Custom conditions can get implemented with the
\TechDivision\ProcessPipelines\Api\PipelineConditionInterface
, which can get used in a Pipeline XML -
The
isReady
function defines when a pipeline may get created with the heartbeat
- The components already include the following standardized pipeline conditions:
Name | Description | ||
---|---|---|---|
The
|
|||
The |
|||
Depending on the implementation, pipelines can run committed for individual Magento websites.
|
|||
With the
|
|||
Example of virtualization of the
CronExpression
|
|||
The
|
|||
The
|
|||
Virtualization of pause condition for cleanup pipeline
vendor/techdivision/process-pipelines/etc/di.xml
|
|||
The
|
|||
Virtualization of depending named pipeline condition for initializer pipeline
vendor/techdivision/pacemaker-pipeline-initializer/etc/di.xml
|
|||
The
|
StepConditions
-
Steps are created together with a pipeline
-
Step conditions define whether a step can/must get executed or not
-
With the
\TechDivision\ProcessPipelines\Api\StepConditionInterface
, own conditions can get implemented, and later get used in apipeline.xml
-
The
isReady
function gets used to define when a step can or may get executed with the heartbeat
- The components already include the following set of standardized step conditions:
Name | Description |
---|---|
With the
|
|
Virtualization of the AttemptsLimit
vendor/techdivision/process-pipelines/etc/di.xml
|
|
With the
|
|
Virtualization of TimeBetweenAttempts
vendor/techdivision/process-pipelines/etc/di.xml
|
|
The
|
|
With the
|
|
With the
|
|
With the |
|
Example of a virtual
NamedPipelinesHasStatus Condition
|
|
With the
|
|
Example of a virtual
DependingOnNamedSteps condition depending on two specific steps in a pipeline.
|
|
With the
This condition is particularly useful for the first steps of pipelines so that they are not executed with the same heartbeat immediately after the pipeline is created |
|
Example of a virtual
DelayTime condition to wait three minutes after creation.
|