Hey Flyte community, Sorry for the dumb question,...
# ask-the-community
t
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
In my experience at local ubuntu, yes. But I am a beginner in Flyte, so let's wait for other's answer.
s
Yes,
sub_workflow2
waits for the completion of
sub_workflow1
.
t
@Samhita Alla Ok, so subworkflow2 won't provision a pod until workflow1 is complete? If so, that's the desired behavior. Thank you.
s
Yes!