Closed rsampaths16 closed 1 year ago
Reference to my RCA: https://github.com/PrefectHQ/prefect/issues/7319#issuecomment-1409055711
Thanks for the issue, we're aware of this one. A fix will require using a copy of the configured task runner for each flow run instead of the flow.task_runner
attribute directly.
Hi @madkinsz, is there an ETA for the fix? It'd really help to know. Thanks.
p.s: wouldn't builder make more sense here than creating copies / clones? we'd let builder take the responsibility of creating proper context.
First check
Bug summary
A flow when it invokes the same flow as a subflow ( recursively ) it fails with a runtime error
The task runner is already started!
I assume since flows can invoke sub-flows recursion should be possible till a recursion depth / stack limit is reached.
Reproduction
Error
Versions
Additional context
I believe the issue https://github.com/PrefectHQ/prefect/issues/7319 could be relevant