Hi! I am starting with argo events. The main use c...
# ask-metaflow
f
Hi! I am starting with argo events. The main use case for me at the moment is to be able to trigger flows based on another flows (
trigger_on_finish
) and so far is good. However, is there a way to run flows without triggering the next ones? let's say I have flow A and B, where B is triggered by A. But sometimes, I would like to trigger A without triggering B. I was planning to add and extra trigger with (
ArgoEvent().safe_publish()
) at the end step of A and then add both
@trigger_on_finish
and
@trigger
to the B flow, but I got
Copy code
Argo Workflows error:
    Argo Workflows doesn't support both @trigger and @trigger_on_finish decorators concurrently yet. Use one or the other for now.
Is there a way I can keep B not to be triggered by A?
1
c
Hey! You could remove the
@trigger_on_finish
from flow B, and keep
@trigger
, so B is listening for the event that you can conditionally publish at the end of flow A.
this 1
f
Thank you Eddie, yeah, that's one option, but then I will not have access to
current.trigger.run
... How can I access the
flow.run
that created the conditional trigger (e.i. flow A)?.... would I have to pass the run_id from flow A to flow B as a parameter in the trigger payload and then from inside flow B then get the run for flow A and its artifacts?
c
yep, that is one way that seems natural to me.
✌️ 1