Files
floci/docs/services
Priamo Germosen 39b601514a feat(emr-containers): retry a job run's failed driver under its retry policy (#9218)
A docker job run with a retryPolicyConfiguration failed at its driver's
first error, and every run showed its policy, even one that disables
retries.

- With a maxAttempts above 1, a driver that exits with an error is
  started again, "restarted automatically if it fails", until the run
  has made maxAttempts attempts, after "an exponential retry interval of
  (10 seconds, 20 seconds, 40 seconds ...) which is capped at 6 minutes"
  (EMR on EKS Development Guide, "Using job retry policies").
- Between its attempts the run is SUBMITTED and keeps its running slot,
  each new attempt raises its retryPolicyExecution's currentAttemptCount,
  and CancelJobRun cancels it at once. One Floci stopped in between waits
  out the rest of its backoff once it is read again. A driver that cannot
  start, or that Floci stopped, is not retried.
- With retries enabled, its driver pod's name has a suffix of each
  attempt's own, spark-<job id>-driver-<random-suffix>, so each attempt's
  logs go to a folder and streams of their own, under the run's one Spark
  application id.
- A maxAttempts outside 1 to 2,147,483,647 is refused with "Retry policy
  configuration's parameter value of maxAttempts is invalid", and one of
  1 shows neither the policy nor its execution: "These fields will not
  be visible when retry policy is disabled in the job".
- Floci sends no EMR on EKS events, so the docs note that there is no
  "EMR Job Run New Driver Attempt" event.
2026-11-22 15:44:21 -04:00
..