[flytekit] Update calling task in task behavior #6024
Labels
backlogged
For internal use. Reserved for contributor team workflow.
enhancement
New feature or request
flytekit
FlyteKit Python related issue
User Code
If you have something like this
Current Behavior
It works in recent versions of flytekit.
Goal: What should the final outcome look like, ideally?
This pattern should not work without an active decision from the user. We want to actively discourage accidentally doing this for a variety of reasons. One is that the behavior is different from when calling a task within a wf - all the procedures and logic behind a normal task run applies. When you call a task within a task, the idea is that it's executing as if flyte doesn't exist - you're just invoking the underlying function.
Proposal from @cosmicBboy
<task>. python_function()
explicitly to call as a local function”.We should probably give this at least a few months, maybe half a year, before making it an error.
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: