Question: Is it possible for 2 parent flows to access the same child run id?
k
Kevin Kho
10/27/2021, 1:21 PM
Hey @Arun Giridharan, if you are on Cloud, I think this is a good use case for the KV Store. You can persist the value of the child run id and then retrieve it later maybe?
a
Arun Giridharan
10/27/2021, 1:22 PM
@Kevin Kho interesting! How does KV Store handle concurrency issues?
k
Kevin Kho
10/27/2021, 1:27 PM
I believe it’s pretty lightweight. Fetching keys should be fast. You may run into issues with reading or writing though if the two parents flows are doing it simultaneously. You can also use the GraphQL API maybe to find that child flow id if you know what you are looking for?
✅ 1
a
Arun Giridharan
10/27/2021, 4:25 PM
is there a way to this in just Prefect Core?
k
Kevin Kho
10/27/2021, 5:16 PM
Maybe if you maintain your own Redis cache? It needs to be cached somewhere, but how can you trigger flows with just Prefect core? I though they need to be registered and run to get those ids
a
Arun Giridharan
10/27/2021, 7:48 PM
This may be a silly question but how can I get a flow id during a flow?