Skip to content
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

Merged
merged 3 commits into from Jun 26, 2019
Merged

Conversation

lburgazzoli
Copy link
Contributor

Fixes #761

Copy link
Member

@nicolaferraro nicolaferraro left a 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
Copy link
Member

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?

Copy link
Contributor Author

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 ?

Copy link
Member

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..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be fixed now

@nicolaferraro nicolaferraro merged commit c17f0be into apache:master Jun 26, 2019
@lburgazzoli lburgazzoli deleted the github-761 branch June 26, 2019 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add timeout to maven operations
2 participants