You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/concepts/workloads/controllers/jobs-run-to-completion.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,19 +140,19 @@ See section [specifying your own pod selector](#specifying-your-own-pod-selector
140
140
There are three main types of task suitable to run as a Job:
141
141
142
142
1. Non-parallel Jobs
143
-
- normally, only one Pod is started, unless the Pod fails.
144
-
- the Job is complete as soon as its Pod terminates successfully.
143
+
- normally, only one Pod is started, unless the Pod fails.
144
+
- the Job is complete as soon as its Pod terminates successfully.
145
145
1. Parallel Jobs with a *fixed completion count*:
146
-
- specify a non-zero positive value for `.spec.completions`.
147
-
- the Job represents the overall task, and is complete when there is one successful Pod for each value in the range 1 to `.spec.completions`.
148
-
-**not implemented yet:** Each Pod is passed a different index in the range 1 to `.spec.completions`.
146
+
- specify a non-zero positive value for `.spec.completions`.
147
+
- the Job represents the overall task, and is complete when there is one successful Pod for each value in the range 1 to `.spec.completions`.
148
+
-**not implemented yet:** Each Pod is passed a different index in the range 1 to `.spec.completions`.
149
149
1. Parallel Jobs with a *work queue*:
150
-
- do not specify `.spec.completions`, default to `.spec.parallelism`.
151
-
- the Pods must coordinate amongst themselves or an external service to determine what each should work on. For example, a Pod might fetch a batch of up to N items from the work queue.
152
-
- each Pod is independently capable of determining whether or not all its peers are done, and thus that the entire Job is done.
153
-
- when _any_ Pod from the Job terminates with success, no new Pods are created.
154
-
- once at least one Pod has terminated with success and all Pods are terminated, then the Job is completed with success.
155
-
- once any Pod has exited with success, no other Pod should still be doing any work for this task or writing any output. They should all be in the process of exiting.
150
+
- do not specify `.spec.completions`, default to `.spec.parallelism`.
151
+
- the Pods must coordinate amongst themselves or an external service to determine what each should work on. For example, a Pod might fetch a batch of up to N items from the work queue.
152
+
- each Pod is independently capable of determining whether or not all its peers are done, and thus that the entire Job is done.
153
+
- when _any_ Pod from the Job terminates with success, no new Pods are created.
154
+
- once at least one Pod has terminated with success and all Pods are terminated, then the Job is completed with success.
155
+
- once any Pod has exited with success, no other Pod should still be doing any work for this task or writing any output. They should all be in the process of exiting.
156
156
157
157
For a _non-parallel_ Job, you can leave both `.spec.completions` and `.spec.parallelism` unset. When both are
0 commit comments