|
17 | 17 |
|
18 | 18 |
|
19 | 19 | class SelectiveExecutionConfig:
|
20 |
| - """Selective execution config config for SageMaker pipeline.""" |
| 20 | + """The selective execution configuration, which defines a subset of pipeline steps to run in |
| 21 | +
|
| 22 | + another SageMaker pipeline run. |
| 23 | + """ |
21 | 24 |
|
22 | 25 | def __init__(self, selected_steps: List[str], source_pipeline_execution_arn: str = None):
|
23 |
| - """Create a SelectiveExecutionConfig |
| 26 | + """Create a `SelectiveExecutionConfig`. |
24 | 27 |
|
25 | 28 | Args:
|
26 |
| - source_pipeline_execution_arn (str): ARN of the previously executed pipeline execution. |
27 |
| - The given arn pipeline execution status can be either Failed or Success. |
28 |
| - selected_steps (List[str]): List of step names that pipeline users want to run |
29 |
| - in new subworkflow-execution. The steps must be connected. |
| 29 | + source_pipeline_execution_arn (str): The ARN from a reference execution of the |
| 30 | + current pipeline. Used to copy input collaterals needed for the selected |
| 31 | + steps to run. The execution status of the pipeline can be `Stopped`, `Failed`, or |
| 32 | + `Succeeded`. |
| 33 | + selected_steps (List[str]): A list of pipeline steps to run. All step(s) in all |
| 34 | + path(s) between two selected steps should be included. |
30 | 35 | """
|
31 | 36 | self.source_pipeline_execution_arn = source_pipeline_execution_arn
|
32 | 37 | self.selected_steps = selected_steps
|
33 | 38 |
|
34 | 39 | def _build_selected_steps_from_list(self) -> RequestType:
|
35 |
| - """Get the request structure for list of selected steps""" |
| 40 | + """Get the request structure for the list of selected steps.""" |
36 | 41 | selected_step_list = []
|
37 | 42 | for selected_step in self.selected_steps:
|
38 | 43 | selected_step_list.append(dict(StepName=selected_step))
|
39 | 44 | return selected_step_list
|
40 | 45 |
|
41 | 46 | def to_request(self) -> RequestType:
|
42 |
| - """Convert SelectiveExecutionConfig object to request dict.""" |
| 47 | + """Convert `SelectiveExecutionConfig` object to request dict.""" |
43 | 48 | request = {}
|
44 | 49 |
|
45 | 50 | if self.source_pipeline_execution_arn is not None:
|
|
0 commit comments