Skip to content

Commit 24c8727

Browse files
authored
Merge pull request #21559 from AdamGS/patch-1
Fix numbering in the "Parallel Jobs" section
2 parents c3e2656 + d32b9e2 commit 24c8727

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

content/en/docs/concepts/workloads/controllers/jobs-run-to-completion.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -140,19 +140,19 @@ See section [specifying your own pod selector](#specifying-your-own-pod-selector
140140
There are three main types of task suitable to run as a Job:
141141

142142
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.
145145
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`.
149149
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.
156156

157157
For a _non-parallel_ Job, you can leave both `.spec.completions` and `.spec.parallelism` unset. When both are
158158
unset, both are defaulted to 1.

0 commit comments

Comments
 (0)