Hey team dummy question, if I have 3 flows `A` ,`B...
# ask-community
g
Hey team dummy question, if I have 3 flows
A
,
B
and
C
I want flow
B
and
C
to be triggered each time flow
A
is run successfully but I want to define this dependency in flow
B
and
C
because the "parent" will be owned by another team. Is there a way to do this in Prefect or if we would have to go for an eventing solution?
k
Hey @Gaylord Cherencey, basically it should be A's job yo call B or C, either through the GraphQL API or a StartFlowRun task. If you want B or C to wait upon the completion of A, you need to poll for it in a task somehow. Does that make sense?
g
Yes I manage to do the first one with StartFlowRun but we don't want the upstream flow to be responsible for handling the dependencies. Instead we would like the downstream Flow (
B
and
C
) to set Flow
A
as dependencies (somehow) and trigger their task when someone from the other team triggers
A
. When you say
poll for it in a task somehow
this mean that natively I won't be able to do this, right?
k
Yes that's right. The most graceful way might be polling through the Flow state handler
g
Ok thanks for the help @Kevin Kho