-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
isOverdue documentation in Scheduler is confusing #25223
Conversation
Thanks for your pull request! The title of your pull request does not follow our editorial rules. Could you have a look?
|
@@ -31,7 +31,7 @@ public interface Trigger { | |||
/** | |||
* The grace period is configurable with {@link Scheduled#overdueGracePeriod()}. | |||
* <p> | |||
* This method returns {@code false} if the last execution has been skipped. | |||
* This method returns {@code false} if the last execution should have been fired but was not. |
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 should mention that is wa not fired within the fire time + grace period... I'm not sure about the wording.
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.
Any chance we could finalize this?
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.
@rmanibus ^ ;-)
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.
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.
@mkouba I'm reading this again, and what I wanted to express initially in this message was that If a scheduler execution is skipped, it will not be considered as overdue.
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 think the following is better:
/**
* The grace period is configurable with {@link Scheduled#overdueGracePeriod()}.
* <p>
* Skipped executions are not considered as overdue.
*
* @return {@code false} if the last execution took place between
* the expected execution time and the end of the grace period, {@code true} otherwise
* @see Scheduled#overdueGracePeriod()
*/
This comment has been minimized.
This comment has been minimized.
ad48918
to
59c58be
Compare
No description provided.