Skip to main content


Use the @trigger_on_finish decorator to trigger a flow deployed on Argo Workflows when another flow finishes.

Read more in Triggering Flows Based on Other Flows.



from metaflow import trigger_on_finish

Specifies the flow(s) that this flow depends on.



@trigger_on_finish(flows=['FooFlow', 'BarFlow'])

This decorator respects the @project decorator and triggers the flow when upstream runs within the same namespace complete successfully

Additionally, you can specify project aware upstream flow dependencies by specifying the fully qualified project_flow_name.



@trigger_on_finish(flows=['my_project.branch.my_branch.FooFlow', 'BarFlow'])

flow: str, optional

Upstream flow dependency for this flow.

flows: List[str], optional

Upstream flow dependencies for this flow.

options: dict, optional

Backend-specific configuration for tuning eventing behavior.