mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[PR #24640] Fix exact-time calendar alerts by adding scheduler grace window #82625
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/24640
Author: @code-quad3
Created: 5/13/2026
Status: 🔄 Open
Base:
dev← Head:fix-calendar-at-time-alert📝 Commits (1)
cb179ddFix exact-time calendar alerts by adding scheduler grace window📊 Changes
2 files changed (+4 additions, -2 deletions)
View changed files
📝
backend/open_webui/models/calendar.py(+2 -1)📝
backend/open_webui/utils/automations.py(+2 -1)📄 Description
Pull Request Checklist
devdev.fixChangelog Entry
Description
Fixes a bug where calendar reminders configured as "At time of event" could be skipped when the scheduler polled slightly after the event start time.
Added
SCHEDULER_POLL_INTERVALfor exact-time reminder detection.Changed
Deprecated
Removed
Fixed
"At time of event" reminders now trigger correctly for:
Security
Breaking Changes
Additional Information
Root cause:
get_upcoming_events()filtered onlystart_at >= now_ns, so if scheduler ran a few seconds late, the event was missed permanently.Fix:
Allow a small backward grace window (
now_ns - SCHEDULER_POLL_INTERVAL) during event lookup.Screenshots or Videos
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.