dflow apps:restart
Replace the running containers and keep the same release.
This replaces the running containers. The image, environment variables, secrets, and replica count stay as they are. Use it when a process is stuck and you do not want a new release.
dflow apps:restart APPFlags
--wait defaults to true. --wait-timeout defaults to 15m. --timeout is the same default. The usual global flags still apply.
What you see
The terminal prints id and status. On a terminal, succeeded is green and pending is yellow. Exit 0 when the status is succeeded, and also for --wait=false. Succeeded means the replacement finished and the new containers stayed Ready, with no restart, for a short window. A crash fails the operation, and the message names the container.
Example
dflow apps:restart apiWhen it fails
A missing deployment exits 6 before the worker runs. --wait-timeout below 1s or above 30m exits 1. Exit 2: auth. Exit 3: the application was not found. Exit 5: the operation failed or was cancelled. Exit 6 when the operation error code is precondition or rate_limited. Exit 7: the wait ended first. Exit 10: the API could not be reached.
How is this guide?
Last updated on