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

Aleksei Potov

07/27/2023, 6:28 PM
Basically I have
Copy code
@task
def main_task():
  return another_workflow() # sub workflow with another_task()

@workflow
def main_workflow():
  return main_task()
But I only see
main_task
in the execution view, not
another_task()
or
another_workflow()
j

Jay Ganbat

07/27/2023, 6:31 PM
your task needs to be
@dynamic
otherwise it will just executed as regular python code inside
@task
a

Aleksei Potov

07/27/2023, 6:38 PM
yep that did it🤦‍♂️
thanks!
n

Niels Bantilan

07/27/2023, 9:12 PM
@Yee @Eduardo Apolinario (eapolinario) I think we need to raise a warning when calling workflows/launchplans within tasks, similar to this: https://github.com/flyteorg/flyte/issues/3299
a

Aleksei Potov

07/28/2023, 2:14 AM
Yeah, that would foolproof it for sure