Hello metaflow team :hugging_face: I was wondering...
# ask-metaflow
b
Hello metaflow team šŸ¤— I was wondering if it was possible to have a double condition to trigger an Argo-metaflow workflow: • the firstFlow has been executed
@trigger_on_finish(flow='FirstFlow')
AND • an event was received
@trigger(event='data_updated')
? Could you achieve this by preceding the definition of
SecondFlow
with both decorators? Something of the sort:
Copy code
@trigger_on_finish(flow='FirstFlow')
@trigger(event='data_updated')
class SecondFlow(FlowSpec):
        ....
Thank you ! ⭐
āœ… 1
following 1
a
yes! you can do
@trigger(events=['metaflow.FirstFlow.end', 'data_updated'])
šŸ™Œ 1
🤩 1
šŸ™ŒšŸ½ 1
⭐ 1