acoustic-carpenter-78188
08/06/2023, 6:12 PM@task
def nested_task() -> int:
return 42
@task
def t1() -> int:
return nested_task()
@workflow
def wf() -> int:
return t1()
nested_task
runs in the same process as task
, as though it was a local execution of that task.
Expected behavior
Users should receive some indication that nested tasks are not allowed. A log message should suffice.
Maybe worth calling out in the documentation as well.
Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
☑︎ Yes
Have you read the Code of Conduct?
☑︎ Yes
flyteorg/flyteacoustic-carpenter-78188
08/06/2023, 6:12 PM