dflow jobs:create
Run one task for an application, then let it exit.
This runs one task for an application. The container should exit on its own. A task that should keep running is an application deploy, not a job.
dflow jobs:create --app APP --name NAME --image IMAGE [--command ARG ...] [--timeout DURATION] [--wait] [--wait-timeout DURATION]Flags
--app, --name, and --image are required. Repeat --command for each argument that replaces the image entrypoint, or pass the arguments after --.
--timeout is how long the job may run. It sets the Kubernetes activeDeadlineSeconds. The default is 20m. The range is 1s to 1h.
--wait polls until the operation finishes. The default is true. --wait-timeout is how long the CLI waits. The default is 20m, from 1s to 30m.
Use an image that runs as a non-root user and exits on its own when you want --wait to finish. Jobs use the same placement as the application's deployment: they prefer nodes labelled for the app, they avoid the control plane, and they do not schedule on build nodes.
What you see
The task is recorded. With --wait, the CLI follows the operation event stream and the stored build logs when the API exposes them. A terminal shows a spinner and how long each phase took. Without a terminal it prints [phase] NAME (+DURATION) lines. Pod events for the parent application appear as indented pod NAME … lines. On success:
summary succeeded in 1m05s
id op_01…
status succeededUse --progress tty on an SSH session that has no TTY and still has an interactive stderr. --progress plain forces the line output instead of a spinner.
When it fails
A bad image, or a job that never finishes, exits with an operation error. Cancelling the operation deletes the Kubernetes Job so its containers stop.
How is this guide?
Last updated on