Skip to content

feat(nimbus): Should skip same day alert for unenrollments#15284

Merged
yashikakhurana merged 2 commits intomainfrom
15221
Apr 15, 2026
Merged

feat(nimbus): Should skip same day alert for unenrollments#15284
yashikakhurana merged 2 commits intomainfrom
15221

Conversation

@yashikakhurana
Copy link
Copy Markdown
Contributor

Because

  • If the enrollment just started and the job task ran just after that, then it may notifies the users false positive about enrollment monitoring, we should wait at least a day and then should notify on the next job task run

This commit

  • Skips the alert and only sends the alert if its more than 1 day

Fixes #15221


if experiment.start_date and (
datetime.date.today() - experiment.start_date
) < datetime.timedelta(days=1):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe that 1 should be a constant somewhere so we clearly know what it's for and what it's doing.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yup good idea

Copy link
Copy Markdown
Collaborator

@jaredlockhart jaredlockhart left a comment

Choose a reason for hiding this comment

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

Yeah that definitely reads better awesome ty @yashikakhurana 🎉

@yashikakhurana yashikakhurana added this pull request to the merge queue Apr 15, 2026
Merged via the queue into main with commit 2717275 Apr 15, 2026
35 checks passed
@yashikakhurana yashikakhurana deleted the 15221 branch April 15, 2026 22:27
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.

wait atleast 1 day for the enrollment to start to start alerts on unenrollments

2 participants