Skip to content

Commit c8773e5

Browse files
authored
Merge pull request #41271 from mrgiles/31719_clarify_job_completionMode_rare_condition
Add note for when multiple pods are started for the same job index
2 parents 2fc0f33 + f838c75 commit c8773e5

File tree

1 file changed

+7
-2
lines changed
  • content/en/docs/concepts/workloads/controllers

1 file changed

+7
-2
lines changed

content/en/docs/concepts/workloads/controllers/job.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,13 @@ Jobs with _fixed completion count_ - that is, jobs that have non null
290290
The Job is considered complete when there is one successfully completed Pod
291291
for each index. For more information about how to use this mode, see
292292
[Indexed Job for Parallel Processing with Static Work Assignment](/docs/tasks/job/indexed-parallel-processing-static/).
293-
Note that, although rare, more than one Pod could be started for the same
294-
index, but only one of them will count towards the completion count.
293+
294+
{{< note >}}
295+
Although rare, more than one Pod could be started for the same index (due to various reasons such as node failures,
296+
kubelet restarts, or Pod evictions). In this case, only the first Pod that completes successfully will
297+
count towards the completion count and update the status of the Job. The other Pods that are running
298+
or completed for the same index will be deleted by the Job controller once they are detected.
299+
{{< /note >}}
295300

296301

297302
## Handling Pod and container failures

0 commit comments

Comments
 (0)