Skip to content

Commit 3622230

Browse files
committed
address Lisa's comment
1 parent 03c6962 commit 3622230

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

articles/machine-learning/how-to-manage-inputs-outputs-pipeline.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The following screenshots provide an example of how inputs and outputs are displ
7979

8080
In the pipeline job page of studio, the asset type inputs/output of a component is shown as a small circle in the corresponding component, known as the Input/Output port. These ports represent the data flow in a pipeline.
8181

82-
The pipeline level input/output is displayed as a purple box for easy identification.
82+
The pipeline level output is displayed as a purple box for easy identification.
8383

8484

8585
:::image type="content" source="./media/how-to-manage-pipeline-input-output/input-output-port.png" lightbox="./media/how-to-manage-pipeline-input-output/input-output-port.png" alt-text="Screenshot highlighting the pipeline input and output port.":::
@@ -203,7 +203,12 @@ You can promote a component's input to pipeline level input in designer authorin
203203

204204
By default, all inputs are required and must be assigned a value (or a default value) each time you submit a pipeline job. However, there may be instances where you need optional inputs. In such cases, you have the flexibility to not assign a value to the input when submitting a pipeline job.
205205

206-
For example, if you have an optional input with data/model type and you don't assign a value when submitting the pipeline job, there will be a component in the pipeline that doesn't have upstream data dependency (the input port isn't connected to any component or data/model node). The pipeline service invokes this component directly rather than waiting upstream dependency to be ready.
206+
Optional input can be useful in below two scenarios:
207+
208+
- If you have an optional data/model type input and do not assign a value to it when submitting the pipeline job, there will be a component in the pipeline that lacks a preceding data dependency. In other words, the input port isn't linked to any component or data/model node. This causes the pipeline service to invoke this component directly, instead of waiting for the preceding dependency to be ready.
209+
- Below screenshot provides a clear example of the second scenario. If you set `continue_on_step_failure = True` for the pipelin and have a second node (node2) that uses the output from the first node (node1) as an optional input, node2 will still be executed even if node1 fails. However, if node2 is using required input from node1, it will not be executed if node1 fails.
210+
211+
:::image type="content" source="./media/how-to-manage-pipeline-input-output/continue_on_failure_optinal_input.png" lightbox="./media/how-to-manage-pipeline-input-output/continue_on_failure_optinal_input.png" alt-text="Screenshot to show the orchestration logic of optinal input and continue on failure.":::
207212

208213
Following are examples about how to define optional input.
209214

13.1 KB
Loading
708 Bytes
Loading

0 commit comments

Comments
 (0)