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.
Description of the change
This adds an "advanced retry policy" that will allow users to configure a retry policy that retries more than once.
Users can set the
max_retries
default to the absolute maximum the policy will allow. By default, the policy will retry up tomax_retries
but users can also set thespacelift_retry:<number>
label on a stack and it will then retry up to that number or up to the policiesmax_retries
whichever is less.If the run succeeds, it does not retry:
If the tracked run fails, it retries 3 times by default:
If the stack has the
spacelift_retry:2
label on it, it will only retry twice:Checklist
Please make sure that the proposed change checks all the boxes below before requesting a review:
main
branch.If the proposed change is ready to be merged, please request a review from
@spacelift-io/solutions-engineering
. Someone will review and merge the pull request.Spacelift employees should request reviews from the relevant engineers and are allowed to merge pull requests after they got at least one approval.
Thank you for your contribution! 🙇