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

fix(notification/rule): Include the edge of the boundary we are observing. #19392

Merged
merged 2 commits into from
Aug 24, 2020

Conversation

brettbuddin
Copy link
Contributor

@brettbuddin brettbuddin commented Aug 19, 2020

We've been witnessing some failed observations of Check triggers in Notification Tasks. In from(start: -10m, stop: now()), the stop is exclusive to the time range—this is so consecutive windows like A -> B, B -> C, don't have overlap. If a Notification Task's schedule boundaries align with Check trigger observations, we will miss observations if they occur on that boundary.

This change includes the left-hand boundary in what the Notification Task sees of Check triggers.

Copy link
Contributor

@lyondhill lyondhill left a comment

Choose a reason for hiding this comment

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

nice find!

@brettbuddin
Copy link
Contributor Author

@lyondhill All @aanthony1243 and @wolffcm's work 😄

We will need to think about regenerating existing Notification Tasks once this gets up into IDPE.

@lyondhill
Copy link
Contributor

We will need to think about regenerating existing Notification Tasks once this gets up into IDPE.

This might not be too difficult. Could we just cause an update to the check that regenerated the task?

@brettbuddin
Copy link
Contributor Author

@lyondhill That's what I'm thinking.

@brettbuddin brettbuddin merged commit 77fcf69 into master Aug 24, 2020
@brettbuddin brettbuddin deleted the bb/notification-trigger-alignment branch August 24, 2020 14:08
Cubone21 pushed a commit that referenced this pull request Aug 25, 2020
…ving. (#19392)

* fix(notification/rule): Include the edge of the boundary we are observing.

* chore(changelog): Add 19392 to changelog.
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.

3 participants