@@ -572,21 +572,21 @@ These are some situations where you might want additional control for declaring
572
572
failure of a Job. Examples of this are frameworks like MPI and PyTorch etc.
573
573
574
574
You can configure a success policy, in the `.spec.successPolicy` field,
575
- to meet the above use cases. This policy can handle Job successes based on the
575
+ to meet the above use cases. This policy can handle Job success based on the
576
576
succeeded pods. After the Job meet success policy, the job controller terminates the lingering Pods.
577
577
A success policy is defined by rules. Each rule can take one of the following forms :
578
578
579
579
* When you specify the `succeededIndexes` only,
580
- once all indexes specified in the `succeededIndexes` succeeded , the Job is marked as succeeded.
580
+ once all indexes specified in the `succeededIndexes` succeed , the job controller marks the Job as succeeded.
581
581
The `succeededIndexes` must be a list of intervals between 0 and `.spec.completions-1`.
582
582
* When you specify the `succeededCount` only,
583
- once the number of succeeded indexes reaches the `succeededCount`, the Job is marked as succeeded.
583
+ once the number of succeeded indexes reaches the `succeededCount`, the job controller marks the Job as succeeded.
584
584
* When you specify both `succeededIndexes` and `succeededCount`,
585
- once the number of succeeded indexes specified in the `succeededIndexes` reaches the `succeededCount`,
586
- the Job is marked as succeeded.
585
+ once the number of succeeded indexes from the subset of indexes specified in the `succeededIndexes` reaches the `succeededCount`,
586
+ the job controller marks the Job as succeeded.
587
587
588
588
Note that when you specify multiple rules in the `.spec.succeessPolicy.rules`,
589
- the rules are evaluated in order. Once the Job meets a rule, the remaining rules are ignored .
589
+ the job controller evaluates the rules in order. Once the Job meets a rule, the job controller ignores remaining rules .
590
590
591
591
Here is a manifest for a Job with `successPolicy` :
592
592
0 commit comments