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

Disable scheduling of methods annotated with @ScheduleRate/@ScheduleDelay if period/delay is negative #6505

Merged
merged 1 commit into from
Oct 2, 2017

Conversation

sunix
Copy link
Contributor

@sunix sunix commented Sep 29, 2017

What does this PR do?

Disable scheduling of methods annotated with @ScheduleRate/@ScheduleDelay if period/delay is negative

Thanks to this PR, we can fix #6383 by setting che.docker.cleanup_period_min=-1

@garagatyi
Copy link

+1

@codenvy-ci
Copy link

@sunix sunix changed the title Disable scheduling of a method annotated with @ScheduleRate if period is negative Disable scheduling of methods annotated with @ScheduleRate/@ScheduleDelay if period/delay is negative Sep 29, 2017
@@ -42,6 +42,9 @@
/** @return - name of configuration parameter for initialDelay */
String initialDelayParameterName() default "";

/** @return - name of configuration parameter for delay */
/**
* @return - name of configuration parameter for delay. A negative delay value will disable the

Choose a reason for hiding this comment

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

it is rather non-positive than negative

Copy link
Contributor Author

Choose a reason for hiding this comment

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

right 👍

@codenvy-ci
Copy link

Copy link
Contributor

@skabashnyuk skabashnyuk left a comment

Choose a reason for hiding this comment

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

Please sync with @slemeur to check if we need some docs or release notes changes.

@skabashnyuk skabashnyuk added this to the 5.19.0 milestone Sep 30, 2017
@skabashnyuk
Copy link
Contributor

…elay if period/delay is not positive

Signed-off-by: Sun Tan <sutan@redhat.com>
@sunix
Copy link
Contributor Author

sunix commented Oct 2, 2017

@skabashnyuk @garagatyi I've updated the PR with your feedback

@garagatyi
Copy link

Don't want to be PITA by saying it so late but have you considered using just zero instead of non-positive value? A single value for disabling feature is easier for understanding than a range.

@codenvy-ci
Copy link

@sunix
Copy link
Contributor Author

sunix commented Oct 2, 2017

@garagatyi I think a single value would confuse people.

@garagatyi
Copy link

OK

Copy link
Contributor

@slemeur slemeur left a comment

Choose a reason for hiding this comment

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

ok for me

@sunix sunix merged commit a58d418 into eclipse-che:master Oct 2, 2017
@benoitf benoitf added the kind/enhancement A feature request - must adhere to the feature request template. label Oct 3, 2017
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Starting a second container of eclipse/che will kill all the workspaces container of the first one
6 participants