Basically I have ```@task def main_task(): retur...
# ask-the-community
a
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
your task needs to be
@dynamic
otherwise it will just executed as regular python code inside
@task
a
yep that did it🤦‍♂️
thanks!
n
@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
Yeah, that would foolproof it for sure