metaflow icon indicating copy to clipboard operation
metaflow copied to clipboard

Co-ordinating Multiple Flows

Open nabeelvalley opened this issue 5 years ago • 5 comments

Is there a way to coordinate multiple flows, or for a flow to state that it requires another flow to have run prior?

For example if I have a Data Preprocessing flow that I'd want to share data with to other flows/using the Client API it could be useful for a flow to state that it is reliant on another flow. Possibly via a decoration on the flow or something like that

And possibly also being able to kick off another flow in a declarative fashion

nabeelvalley avatar Aug 12 '20 08:08 nabeelvalley

@nabeelvalley You can trigger workflow executions based on other workflow executions if you are using AWS Step Functions by setting custom rules on Amazon Event Bridge. We will soon provide a parameter TriggerOnFinish that will automate this setup and trigger a downstream workflow on AWS Step Functions on successful completion.

savingoyal avatar Aug 13 '20 16:08 savingoyal

@savingoyal thanks for the information

is it possible to do this locally? or any plans to work on something like that?

nabeelvalley avatar Aug 13 '20 18:08 nabeelvalley

@nabeelvalley We recently released a new feature that paves the way for introducing namespaced triggers - https://docs.metaflow.org/going-to-production-with-metaflow/coordinating-larger-metaflow-projects. I will follow up with a memo on event based triggers shortly.

savingoyal avatar May 27 '21 19:05 savingoyal

Hi @nabeelvalley @savingoyal, I'd also like to trigger a flow B from a flow A, is there any update on this? :)

Cheers

JulesBelveze avatar Dec 06 '21 16:12 JulesBelveze

hi all -- any update on this?

nabsabraham avatar Aug 02 '22 13:08 nabsabraham

Hello everyone, Any update? Would be a great feature!

sphomme avatar Nov 03 '22 13:11 sphomme

Yes indeed - we are actively working on - https://github.com/Netflix/metaflow/pull/1139

savingoyal avatar Nov 03 '22 15:11 savingoyal

@savingoyal #1139 appears to be closed, is it still being worked on? Cheers

hallsop avatar Jan 18 '23 08:01 hallsop

you can now use @trigger_on_finish (and other external events) to coordinate multiple flows. See here: https://docs.metaflow.org/production/event-triggering

tuulos avatar Aug 29 '23 16:08 tuulos