# prefect-community

Andreas Nord

09/29/2022, 9:24 AM
Hi! I have a flow which only calls two subflows (and nothing else). The subflows show up as completed but the main flow is stuck at running... I've had related problems that seemed to be because of memory issues, but my subflows don't return anything so I don't see how they can complete without the main flow completing
I am using DockerContainer
It seems that the docker container exists about 30 seconds after the last subflow run, without setting the main flow to Completed

Rob Freedy

09/30/2022, 1:41 PM
Hey @Andreas Nord ! Are you able to share a minimal example of your flow that is not completing?

Andreas Nord

10/04/2022, 1:07 PM
It seems that the problem can be solved by adding a return statement, I am not 100% sure how this solves the problem but if I have time I can try to reproduce it
👍 1