-
Notifications
You must be signed in to change notification settings - Fork 169
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
Conditionally retry a step on failure #1645
Comments
This is also related to #1208 When making model changes we should keep both features in mind |
I really want this feature 👍 How about adding some useful keys and changing indentation? steps:
sd-setup-scm:
command: git clone foo bar....
retry: # object below or just `true`
condition: $GIT_SHALLOW_CLONE == true # optional
maxRetry: 3 # optional, default 1
interval: 3 # optional, default 0 (second)
environment: # optional
GIT_SHALLOW_CLONE: false |
Adding retry options under |
Another ability a user asked for related to this issue was optionally being able to specify restarting from a previous job. |
Also -- it would be ideal if condition could be a regex matcher or something for the log output. For example, scanning the output for |
Any update on this feature? |
Any progress on this one? We agree with adding the retry setting to steps as above as the user can change the setting at will. On the other hand, sd-setup-scm are setup steps and cannot be arbitrarily changed from screwdriver.yaml. The main setup steps where steps can fail due to external dependencies are the Image Pull in sd-setup-init and the git clone in sd-setup-scm. However, the sd-setup-scm step does not have a retry process when a git clone fails, so even if you are an administrator, you cannot make it retry automatically. Therefore, we are currently considering the following modifications.
|
What happened:
Sometimes a step can fail because of external dependencies. There is no option to retry the command under different circumstances without restarting a new build or code changes.
What you expected to happen:
Provide an option to conditionally retry failed steps.
retry
condition without ability to overridecommand
For example
How to reproduce it:
N/A
The text was updated successfully, but these errors were encountered: