05/10/2022, 6:26 PM
is there a way to set dependencies between two flows (not tasks)?
05/10/2022, 6:30 PM
05/10/2022, 6:34 PM
thank you! i have a follow up question - is there a way to import a flow and then add a new task to it with an edge attached to a task from the imported flow?
05/10/2022, 6:38 PM
Yes to the new task. No to the edge I think.
with Flow(..) as flow: ... with flow: new_task()
but you lose the references I think
05/10/2022, 6:39 PM
no, the easiest would be to create another flow or package the code that needs to be reused to a separate function and call from a task
05/10/2022, 6:41 PM
hmm, how about importing a flow and then replacing a task in it? is that possible?
05/10/2022, 7:44 PM
No that is not. You should likely have some form of flow factory can you can parameterize and change the structure based in the functions