-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make action retries configurable #147876
Merged
ersin-erdal
merged 8 commits into
elastic:main
from
ersin-erdal:146222-configurable-retry
Dec 23, 2022
Merged
Make action retries configurable #147876
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3654e28
Make action retries configurable
ersin-erdal 1e736bd
Update Docs
ersin-erdal 971c936
Change max configurable maxAttempts
ersin-erdal cb1970a
Fix failing test
ersin-erdal 89e43dd
Set min maxAttempts limit
ersin-erdal eb1988f
Merge branch 'main' into 146222-configurable-retry
ersin-erdal 4295f9f
replace retry with attempt
ersin-erdal aab15d6
Merge remote-tracking branch 'origin/146222-configurable-retry' into …
ersin-erdal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This says that
maxAttempts
indicates the number of retries, but when verifying it seems that it means the number of tries. When I setmaxAttempts
to 1, I only see the action run once and then not retried, when I would expect it to see it retried 1 time.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I set
maxAttempts: 1
and force an email error. After the first action run, I see this log:which says
retry: true
. Since maxAttempts is meant to be max retries, I would expect this to be retried once and the logs indicate it will be retried. However, the action task is deleted after this and the action is never retried.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, @ymao1! We should fix our docs to mention "attempt" instead of "retries". Basically this value confirms how many times an action will run (attempt) before aborting it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed that the
getRetry
/retry: true
stuff can be confusing 🙈 +1 to a follow up if we didn't break it in this PR.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, I don't think this is caused in this PR. A followup issue is fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced retry with attempt :)
And checked the
retry: true
in the response, action executor returns it when there is an error other than a validation error. I think it means retryable not "the last execution was a retry".