diff --git a/docs/user_guide/advanced_composition/chaining_flyte_entities.md b/docs/user_guide/advanced_composition/chaining_flyte_entities.md index 3a6f85a725..ed15928feb 100644 --- a/docs/user_guide/advanced_composition/chaining_flyte_entities.md +++ b/docs/user_guide/advanced_composition/chaining_flyte_entities.md @@ -7,7 +7,7 @@ ``` Flytekit offers a mechanism for chaining Flyte entities using the `>>` operator. -This is particularly valuable when chaining tasks and subworkflows without the need for data flow between the entities. +This is particularly valuable when chaining tasks, subworkflows, and launch plans without the need for data flow between the entities. ```{note} To clone and run the example code on this page, see the [Flytesnacks repo][flytesnacks]. @@ -32,22 +32,38 @@ Just like tasks, you can chain {ref}`subworkflows `. :lines: 34-49 ``` +## Launch plans + +Like subworkflows, you can chain {ref}`launch plans `. + + +```{literalinclude} /examples/advanced_composition/advanced_composition/chain_entities.py +:caption: advanced_composition/chain_entities.py +:lines: 55-60 +``` + To run the provided workflows on the Flyte cluster, use the following commands: ``` pyflyte run --remote \ - https://raw.githubusercontent.com/flyteorg/flytesnacks/69dbe4840031a85d79d9ded25f80397c6834752d/examples/advanced_composition/advanced_composition/chain_entities.py \ + https://raw.githubusercontent.com/flyteorg/flytesnacks/ab2e8e84362c5b06d2eea0d1d6e29ea7fe460608/examples/advanced_composition/advanced_composition/chain_entities.py \ chain_tasks_wf ``` ``` pyflyte run --remote \ - https://raw.githubusercontent.com/flyteorg/flytesnacks/69dbe4840031a85d79d9ded25f80397c6834752d/examples/advanced_composition/advanced_composition/chain_entities.py \ + https://raw.githubusercontent.com/flyteorg/flytesnacks/ab2e8e84362c5b06d2eea0d1d6e29ea7fe460608/examples/advanced_composition/advanced_composition/chain_entities.py \ chain_workflows_wf ``` +``` +pyflyte run --remote \ + https://raw.githubusercontent.com/flyteorg/flytesnacks/ab2e8e84362c5b06d2eea0d1d6e29ea7fe460608/examples/advanced_composition/advanced_composition/chain_entities.py \ + chain_launchplans_wf +``` + :::{note} -Chaining tasks and subworkflows is not supported in local environments. +Chaining tasks, subworkflows, and launch plans is not supported in local environments. Follow the progress of this issue [here](https://github.com/flyteorg/flyte/issues/4080). :::