Jai P
11/26/2025, 3:09 PMProcessPoolTaskExecutor (or really, any of the parallel task runners). Since tasks can be nested inside of tasks, what's the execution model when i task.submit() a task, and it calls another_task() inside of it, where does another_task run? in the process that is handling task? i ask because it used to be that we needed to wrap tasks in flow runs to control which task runner to useNate
11/26/2025, 7:18 PM__call__ a task it doesn't go another thread/process, it runs like a normal function (this is new in 3.x)
when you .submit or map a task it uses the parent flow's task runnerJai P
11/26/2025, 8:25 PM@task
my_inner_task():
return 1 + 1
@task
def my_outer_task():
my_inner_task.submit()
@flow(task_runner=ProcessPoolTaskRunner()
def my_flow():
my_outer_task.submit()
based on what you said, my_inner_task should use the parent flow's task runner, but my_outer_task is already running in a separate process?
does that mean my_inner_task gets propagated back to the parent flow's task runner and effectively runs at the same "level" as my_outer_task (where level is the process pool created by the parent flow)Nate
11/26/2025, 8:27 PMNate
11/26/2025, 8:27 PMNate
11/26/2025, 8:28 PMNate
11/26/2025, 8:28 PMNate
11/26/2025, 8:29 PMNate
11/26/2025, 8:30 PMNate
11/26/2025, 8:30 PMJai P
11/26/2025, 8:33 PMNate
11/26/2025, 8:45 PMJai P
11/26/2025, 8:56 PMBring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.
Powered by