Hey folks, is it possible to dynamically add tasks to a flow while the flow is running? I'm reading through the flow_runner.py code and it seems like if it's possible, it's...involved.
c
Chris White
03/22/2021, 6:06 PM
Hey Nathan - outside of mapping, this is currently not possible; could you explain your use case?
n
Nathan Walker
03/22/2021, 6:29 PM
Right now it's more of "can we" not "we must."
The general use case is that we have some list of tables we need to process in a Flow. Task 1 queries for the list of tables, Task 2 gets mapped to this list. Then we run Task 1 again and if it returns a non-empty list, we pass that to another run of the same Flow. We're just looking for other options to do this processing and maybe keep it all in one Flow.
c
Chris White
03/22/2021, 6:33 PM
Thanks for sharing, that’s pretty interesting!
So ultimately you want to either dynamically keep adding Task 1 — map --> Task 2 to your Flow Run until the tables are done, OR have a looping mechanism at the Flow Run level?
n
Nathan Walker
03/22/2021, 7:10 PM
Yeah, that's a good summary!
c
Chris White
03/23/2021, 1:19 AM
Awesome, noted! This is something that we would be interested in supporting, so I’ll keep this use case in mind 🙂
Bring 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.