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
Add timeout to maven operations #765
Conversation
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.
Everything good, just a comment on the default timeout.
@@ -132,12 +132,20 @@ func (action *initializeAction) Handle(ctx context.Context, ip *v1alpha1.Integra | |||
if target.Spec.Build.PersistentVolumeClaim == "" { | |||
target.Spec.Build.PersistentVolumeClaim = target.Name | |||
} | |||
if target.Spec.Build.Maven.Timeout.Duration == 0 { | |||
target.Spec.Build.Maven.Timeout.Duration = 2 * time.Minute |
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 know that everything is restarted, but I'd increase this to 5 mins because first run is always slow if you don't have a quick network. Wdyt?
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.
We can increase it but should be lower than the build timeout imho, i.e. it could be set to 2/3 of the build 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.
Yeah, I think it's ok if the process is restarted once.. not twice..
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.
should be fixed now
Fixes #761