In this article
A success policy can stop useful but unnecessary workers once a declared subset succeeds; it cannot prove that every dataset partition was processed.
A parameter search may need a satisfactory candidate rather than every candidate. A dataset conversion usually needs every partition. Both can use Indexed Jobs, but copying an early-success policy between them changes the meaning of completion. Define sufficiency before choosing controller fields.
State the application result
Describe the accepted result independently of Pod counts. For a search, success might mean that any candidate from an approved subset produced a validated artifact. For conversion, omitted partitions may invalidate the whole result. Connect each index to its immutable input, as in the Indexed Job manifest guide. A successful process exit must itself follow the required artifact checks; the controller does not inspect candidate quality.
Translate sufficiency into a rule
The Job concepts distinguish succeededIndexes, succeededCount and their combination. An index subset alone requires all named indexes to succeed. A count alone counts successful indexes generally. Combining them counts successes within the named subset. Review the combined rule in plain language with the workload owner; reading its fields as independent alternatives can accidentally accept a candidate outside the intended population.
Inspect all rules and stopping policies
Rules are evaluated in order, and satisfying a rule makes later rules irrelevant. Review each as a separate sufficient path, including permissive fallbacks. The documentation also warns that terminating policies, including backoff and Pod failure policies, can take precedence over success policy. Preserve those fields together. The existing failure classification guide explains the failure signals; their interaction with early success belongs in the same acceptance review.
Account for workers that remain
The Job API makes successPolicy an immutable Indexed Job setting and specifies termination of lingering Pods after its criteria are met. Do not rely on the setting as a late operational toggle. Save SuccessCriteriaMet and final Complete conditions separately, along with actual Pod termination. An application may have cleanup or writes in progress during the intervening period. Controller success does not authorize another process to consume an unfinished artifact.
Test contrasting candidate populations
Prepare disposable candidates where success occurs inside the permitted subset, only outside it, and below the required count. Add a case that reaches a declared failure termination condition. Keep candidate identities and outputs inspectable, then compare observed conditions with the prewritten expected verdicts. This proposed check should establish which rule accepted the run, which workers stopped and whether the accepted artifact actually passed validation; it is not a throughput benchmark.
Publish the limited conclusion
Store the effective policy and the successful-index evidence with the selected artifact. State explicitly which candidates never completed. If consumers require exhaustive evaluation, publish a separate completeness verdict and reject incomplete coverage even when the Job is Complete. Early success is useful when the remaining work has no required contribution to the accepted result. It offers no general guarantee about optimality, fairness between candidates, or rollback of side effects already performed by workers that were subsequently terminated.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.