/AWS1/IF_PIP=>RETRYSTAGEEXECUTION()¶
About RetryStageExecution¶
You can retry a stage that has failed without having to run a pipeline again from the beginning. You do this by either retrying the failed actions in a stage or by retrying all actions in the stage starting from the first action in the stage. When you retry the failed actions in a stage, all actions that are still in progress continue working, and failed actions are triggered again. When you retry a failed stage from the first action in the stage, the stage cannot have any actions in progress. Before a stage can be retried, it must either have all actions failed or some actions failed and some succeeded.
Method Signature¶
METHODS /AWS1/IF_PIP~RETRYSTAGEEXECUTION
IMPORTING
!IV_PIPELINENAME TYPE /AWS1/PIPPIPELINENAME OPTIONAL
!IV_STAGENAME TYPE /AWS1/PIPSTAGENAME OPTIONAL
!IV_PIPELINEEXECUTIONID TYPE /AWS1/PIPPIPELINEEXECUTIONID OPTIONAL
!IV_RETRYMODE TYPE /AWS1/PIPSTAGERETRYMODE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_pipretrystageexecout
RAISING
/AWS1/CX_PIPCONCURRENTPLEXSL00
/AWS1/CX_PIPCONFLICTEXCEPTION
/AWS1/CX_PIPNOTLATSTPLINEXECEX
/AWS1/CX_PIPPIPELINENOTFOUNDEX
/AWS1/CX_PIPSTAGENOTFOUNDEX
/AWS1/CX_PIPSTAGENOTRETRYABL00
/AWS1/CX_PIPVALIDATIONEX
/AWS1/CX_PIPCLIENTEXC
/AWS1/CX_PIPSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_pipelinename TYPE /AWS1/PIPPIPELINENAME /AWS1/PIPPIPELINENAME¶
The name of the pipeline that contains the failed stage.
iv_stagename TYPE /AWS1/PIPSTAGENAME /AWS1/PIPSTAGENAME¶
The name of the failed stage to be retried.
iv_pipelineexecutionid TYPE /AWS1/PIPPIPELINEEXECUTIONID /AWS1/PIPPIPELINEEXECUTIONID¶
The ID of the pipeline execution in the failed stage to be retried. Use the GetPipelineState action to retrieve the current pipelineExecutionId of the failed stage
iv_retrymode TYPE /AWS1/PIPSTAGERETRYMODE /AWS1/PIPSTAGERETRYMODE¶
The scope of the retry attempt.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_pipretrystageexecout /AWS1/CL_PIPRETRYSTAGEEXECOUT¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->retrystageexecution(
iv_pipelineexecutionid = |string|
iv_pipelinename = |string|
iv_retrymode = |string|
iv_stagename = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_pipelineexecutionid = lo_result->get_pipelineexecutionid( ).
ENDIF.