retry_stage_execution
¶
retry_stage_execution(
pipeline_name: PipelineName,
stage_name: StageName,
pipeline_execution_id: PipelineExecutionId,
retry_mode: StageRetryMode,
*,
config_overrides: Optional[CodePipelineClientConfig] = None,
) -> RetryStageExecutionOutput
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.
Parameters:
-
pipeline_name(PipelineName) –The name of the pipeline that contains the failed stage.
-
stage_name(StageName) –The name of the failed stage to be retried.
-
pipeline_execution_id(PipelineExecutionId) –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
-
retry_mode(StageRetryMode) –The scope of the retry attempt.
Raises:
-
ConcurrentPipelineExecutionsLimitExceededException–The pipeline has reached the limit for concurrent pipeline executions.
-
ConflictException–Your request cannot be handled because the pipeline is busy handling ongoing activities. Try again later.
-
NotLatestPipelineExecutionException–The stage has failed in a later run of the pipeline and the
pipelineExecutionIdassociated with the request is out of date. -
PipelineNotFoundException–The pipeline was specified in an invalid format or cannot be found.
-
StageNotFoundException–The stage was specified in an invalid format or cannot be found.
-
StageNotRetryableException–Unable to retry. The pipeline structure or stage state might have changed while actions awaited retry, or the stage contains no failed actions.
-
ValidationException–The validation was specified in an invalid format.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codepipeline/_services/code_pipeline.py
2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 | |