07/28/2023, 9:04 PM
Hey, I need some help with a flow-related issue: I have a parent flow that starts a child flow as a coroutine and waits for it to complete. However, sometimes the child flow crashes during pod startup, but it recovers and runs fine once the pod is up. The problem is that the main flow gets the incorrect "crashed" status from the child flow and proceeds without waiting for it to finish. I want the main flow to wait until the child flow either completes successfully or fails. Any suggestions on how to handle this scenario and ensure proper synchronization between the flows? Thanks in advance for your insights!