Comments (7)
The AWS Java SDK includes a Backoff Strategy:
com.amazonaws.retry.PredefinedRetryPolicies.SDKDefaultBackoffStrategy
imho a retry parameter makes no sense from the User Perspective. Maybe this is a major drawback of the solution - because of, normal Plugin User don't understands the dependency between ThrottlingExceptions and Retry Counts.
You should start with something hardcoded like max 10 Retry.
envato/stack_master@12448d8#diff-1f8a98128798cdf6364b9ebc6358d44fR29
from aws-codebuild-jenkins-plugin.
Proposed solution
Add a pollingInterval
build parameter to the CodeBuildStep
. Keep the default to 5 seconds. Let the users decide if they want to increase it to suit their parallelism requirement.
I have a PR for this. See #32
from aws-codebuild-jenkins-plugin.
The Java AWS SDK includes some Retry Logic concerning ThrottlingExceptions, maybe you should review the default Client Configuration and increase the maxErrorRetry Value.
com.amazonaws.retry.RetryUtils#isThrottlingException
from aws-codebuild-jenkins-plugin.
@oliver-schoenherr .. nice suggestion. Do we retry with increasing sleep times after every retry? We would still need a limit for the number of retries. Do we hard code this in the code or let the plugin have a retries parameter ?
from aws-codebuild-jenkins-plugin.
sounds good @oliver-schoenherr. We can start off by hard coding the retry limit/sleep time and see if it works for most use cases. If users need a higher retry limit, we can think about parameterizing the retry limit.
cc. @leobaran-aws @jvusich any thoughts ?
from aws-codebuild-jenkins-plugin.
Sounds good to me! Implementing backoff for build status polling is a great idea.
from aws-codebuild-jenkins-plugin.
Merged #35.
from aws-codebuild-jenkins-plugin.
Related Issues (20)
- Config setting to override image pull credentials type
- The time of the build at the plugin differs from Codebuild
- Can't download artifacts from S3 HOT 1
- Artifacts download to workspace on Jenkins master rather than slave
- Running CodeBuild on Docker Container uses Master Role and NOT Agent Role
- Unable to stream cloudwatch logs HOT 9
- Cannot override secondary artifact name
- Versions 0.55 and above may not work on Jenkins 2.319 HOT 1
- Unable to specify variable type in environment variables override
- Which is the main repository? HOT 3
- Support file modes in "Use Jenkins source" HOT 1
- Support include/exclude file patterns in "Use Jenkins source" HOT 1
- Parallel execution with "Use Jenkins source" results S3 upload error and strange error message HOT 5
- Inconsistant Jenkins target version
- Question: when git clone depth override is empty
- Source Override does not work for AWS Gov Cloud
- CodeBuildException on zip and upload HOT 2
- Environment Variable Override Does Not Accept pipe '|' character
- Support for GPU based codebuild container HOT 2
- environment directive gets ignored
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-codebuild-jenkins-plugin.