<#1721 Throw warning for nested @Task functions> P...
# flyte-github
a
#1721 Throw warning for nested @Task functions Pull request opened by oliverhu [BUG] Nested @task invocations should not supported #3734 TL;DR Address flyteorg/flyte#3734 that nested Tasks/Workflows is not warned. In this PR, we fixed two things: 1. During local execution, pass proper
execution_state.mode
to
flyte_entity_call_handler
, so the underlying entity handler can create the correct FlyteContext (not always LOCAL_WORKFLOW_EXECUTION). 2. If
flyte_entity_call_handler
is invoked inside LOCAL_TASK_EXECUTION or TASK_EXECUTION, warn the users of nested tasks/workflows. Type ☑︎ Bug Fix ☐ Feature ☐ Plugin Are all requirements met? ☐ Code completed ☐ Smoke tested ☐ Unit tests added ☐ Code documentation added ☐ Any pending items have an associated Issue Complete description How did you fix the bug, make the feature etc. Link to any design docs etc Tracking Issue https://github.com/flyteorg/flyte/issues/ Follow-up issue NA OR https://github.com/flyteorg/flyte/issues/ flyteorg/flytekit ✅ All checks have passed 2/2 successful checks