Hi all, I've got a question regarding the `trigger...
# ask-metaflow
a
Hi all, I've got a question regarding the
trigger_on_finish
decorator. I have two flows FlowA and FlowB that are independent of one another. I have another flow FlowC that I would like to be automatically triggered if either of FlowA OR FlowB finish. Currently, I don't see a way to do this as
trigger_on_finish(flows=["FlowA", "FlowB"])
implies that FlowA AND FlowB must finish in order to trigger FlowC. Any tips on how I can make it such that either flow can trigger FlowC?
1
a
hi! yes at the moment
trigger_on_finish(flows=["FlowA", "FlowB"])
implies AND. we took the decision to not support OR since an OR is equivalent to two deployments where one depends on
FlowA
and the other on
FlowB
python flow.py argo-workflows --name foo create
and ``python flow.py argo-workflows --name bar create`` can help you create multiple deployments out of the same flow
the new configurable metaflow support can also help you dynamically alter the
trigger_on_finish
a
gotcha, that makes sense. Appreciate the help!
among us party 1
f
This is exactly what I was looking for
among us party 1