# Issue The command of jobs does not run correctly if its job already finished. Some readers may confuse that they can't succeed to run a command to follow this tutorial. So, we should add `--show-all` option to show pods that may be completed. # The log to show that we need to add an --show-all option ``` $ kubectl get jobs NAME DESIRED SUCCESSFUL AGE busybox 1 0 27d hello-1529501040 1 1 2m hello-1529501100 1 1 1m hello-1529501160 1 1 43s $ kubectl get pods --selector=job-name=hello-1529501160 No resources found, use --show-all to see completed objects. $ kubectl get pods --show-all --selector=job-name=hello-1529501160 NAME READY STATUS RESTARTS AGE hello-1529501160-dckjv 0/1 Completed 0 1m ``` |
||
---|---|---|
.. | ||
coarse-parallel-processing-work-queue | ||
fine-parallel-processing-work-queue | ||
_index.md | ||
automated-tasks-with-cron-jobs.md | ||
coarse-parallel-processing-work-queue.md | ||
cronjob.yaml | ||
fine-parallel-processing-work-queue.md | ||
job.yaml | ||
parallel-processing-expansion.md |