You are viewing the docs for v1.3, which is not the latest release.
View latest

maxAttempt renamed maxAttempts

For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append .md to any kestra.io/docs/* URL for plain Markdown.

maxAttempt renamed maxAttempts

For retries, the maxAttempt property has been renamed with an alias to maxAttempts to promote proper English grammar. This is a non-breaking change, but update all flows to use the correctly named property as a long-term safeguard.

Before

The following example defines a retry for the retry_sample task with a maximum of 5 attempts every 15 minutes:

yaml- id: retry_sample
  type: io.kestra.plugin.core.log.Log
  message: my output for task {{task.id}}
  timeout: PT10M
  retry:
    type: constant
    maxAttempt: 5 # This name will still work, but it is recommended to search and replace in your flows.
    interval: PT15M

After

The following example defines a retry for the retry_sample task with a maximum of 5 attempts every 15 minutes:

yaml- id: retry_sample
  type: io.kestra.plugin.core.log.Log
  message: my output for task {{task.id}}
  timeout: PT10M
  retry:
    type: constant
    maxAttempts: 5 # The correct, long-term naming convention
    interval: PT15M