Hello,
I am evaluating Cloud Run for a non-production workload that uses FFmpeg inside a managed sandbox to process a short, synthetic audio file.
My main concern is whether sandbox processes and resources are reliably terminated when the parent Cloud Run runtime stops, especially if the parent application crashes or becomes unresponsive.
I am comparing Cloud Run Services with manually managed Cloud Run Instances. I understand that stopping or deleting a Cloud Run Instance is not the same as invoking an API to delete an individual sandbox.
I would appreciate clarification on the following questions.
1. Sandbox termination guarantees
When a Cloud Run Instance stop operation completes successfully, does Google Cloud guarantee that all managed sandbox processes and descendants associated with that instance have terminated, and that their namespaces, cgroups, mounts, and temporary storage resources have been released?
Does the same guarantee apply if the parent application crashes, encounters an out-of-memory condition, or the instance transitions to FAILED with restartPolicy=NEVER?
2. External verification
If the parent runtime is no longer accessible, which documented API fields, instance conditions, or operation results can an external controller use to determine that the sandbox and its resources have been terminated?
Is successful completion of the stop operation sufficient, or is additional verification required?
3. Time-bound termination
For our experimental safety requirements, we are evaluating termination within 5 seconds of a stop request, followed by 10 seconds of independent observation for residual processes or resources.
Is such a guarantee supported by the Cloud Run platform contract? If not, what termination guarantees or documented limits are available?
We are not requesting access to internal infrastructure. We are trying to identify which lifecycle guarantees can be relied upon through public APIs and which conditions must be validated separately.
References to official documentation would be especially helpful.
Thank you for your guidance.