diff --git a/flytekit/tools/translator.py b/flytekit/tools/translator.py index 045ab7970a..5d8b3db141 100644 --- a/flytekit/tools/translator.py +++ b/flytekit/tools/translator.py @@ -289,7 +289,7 @@ def get_serializable_workflow( nodes=upstream_node_models, outputs=entity.output_bindings, ) - return admin_workflow_models.WorkflowSpec(template=wf_t, sub_workflows=list(set(sub_wfs))) + return admin_workflow_models.WorkflowSpec(template=wf_t, sub_workflows=sorted(set(sub_wfs), key=lambda x: x.short_string())) def get_serializable_launch_plan(