-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
+1 |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/3896/ |
8ed8fee
to
60fd4b1
Compare
@@ -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 |
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.
it is rather non-positive than negative
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.
right 👍
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/3904/ |
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.
Please sync with @slemeur to check if we need some docs or release notes changes.
Couple of words here https://github.com/eclipse/che/blob/master/core/commons/che-core-commons-schedule/README.md would be nice too. |
60fd4b1
to
98bc59e
Compare
…elay if period/delay is not positive Signed-off-by: Sun Tan <sutan@redhat.com>
98bc59e
to
db25d0f
Compare
@skabashnyuk @garagatyi I've updated the PR with your feedback |
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. |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/3925/ |
@garagatyi I think a single value would confuse people. |
OK |
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.
ok for me
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