https://flyte.org logo
#ask-the-community
Title
# ask-the-community
t

Tommy Nam

07/18/2023, 4:26 AM
Hey Flyte community, Sorry for the dumb question, but just want a little clarification. So for subworkflows and chain flyte entitites:
Copy code
@dynamic
def test_wf():
   sub_workflow1 = workflow1()
   sub_workflow2 = workflow2()

  sub_workflow1 >> sub_workflow2
Would this syntax make it so that Flyte waits for sub_workflow1 to complete successfully and entirely before moving onto sub_workflow2? We'd like to enable some AWS Batch-like behavior for some scheduled ML flows
l

L godlike

07/18/2023, 4:34 AM
In my experience at local ubuntu, yes. But I am a beginner in Flyte, so let's wait for other's answer.
s

Samhita Alla

07/18/2023, 4:41 AM
Yes,
sub_workflow2
waits for the completion of
sub_workflow1
.
t

Tommy Nam

07/18/2023, 5:56 AM
@Samhita Alla Ok, so subworkflow2 won't provision a pod until workflow1 is complete? If so, that's the desired behavior. Thank you.
s

Samhita Alla

07/18/2023, 6:57 AM
Yes!
2 Views