@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()
m
magnificent-teacher-86590
07/27/2023, 6:31 PM
your task needs to be
@dynamic
otherwise it will just executed as regular python code inside
@task
m
many-exabyte-15566
07/27/2023, 6:38 PM
yep that did it🤦♂️
many-exabyte-15566
07/27/2023, 6:38 PM
thanks!
b
broad-monitor-993
07/27/2023, 9:12 PM
@thankful-minister-83577@high-accountant-32689 I think we need to raise a warning when calling workflows/launchplans within tasks, similar to this:
https://github.com/flyteorg/flyte/issues/3299