square-agency-59624
06/19/2025, 9:23 PMjolly-florist-66728
06/19/2025, 9:23 PMsquare-agency-59624
06/19/2025, 9:35 PMjolly-florist-66728
06/19/2025, 9:35 PMsquare-agency-59624
06/19/2025, 9:40 PMjolly-florist-66728
06/19/2025, 9:40 PMfailure_policy
parameter in the @workflow
decorator. For example, use WorkflowFailurePolicy.FAIL_AFTER_EXECUTABLE_NODES_COMPLETE
to allow all independent nodes to finish even if one fails:
from flytekit import workflow, WorkflowFailurePolicy
@workflow(failure_policy=WorkflowFailurePolicy.FAIL_AFTER_EXECUTABLE_NODES_COMPLETE)
def my_workflow():
# your dynamic tasks or other nodes here
...
This works the same way in both Flyte OSS and Union.ai Serverless. See the Flyte failure node documentation for more details.
Would you like a full example with dynamic tasks?
Sources:
- Flyte failure node documentation 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.