-
-
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
Campaign events reschedules due to DST #11602
Conversation
Codecov Report
@@ Coverage Diff @@
## 4.4 #11602 +/- ##
=========================================
Coverage 49.96% 49.96%
- Complexity 35405 35407 +2
=========================================
Files 2144 2144
Lines 106296 106295 -1
=========================================
+ Hits 53109 53114 +5
+ Misses 53187 53181 -6
|
I merged this by accident. Too many tabs opened. I'll give it a test now. |
@rohitp19 can you please help me with the last step?
The |
This condition can be tested when server current time is outside DST and date_triggered inside DST |
Description:
Campaign events can get stuck in an hourly rescheduling loop with the following circumstances:
The event was evaluated prior to a time change that falls back an hour to be executed at a time after the time change. E.g. date_triggered = 2021-10-24 17:00:00 and trigger_date = 2021-11-08 14:00:00.
The event is scheduled at a relative time period at a specific hour or between two hours.
Steps to test this PR:
Open this PR on Gitpod or pull down for testing locally (see docs on testing PRs here)
Create a campaign with event which can be scheduled after 7th November 2021.
Add a contact in Eastern time zone where DST changes are applicable and add that contact to the segment which used in above campaign.
Change date_triggered date in mautic_campaign_lead_event_log to befoe DST 7th November 2021. and verify event get triggered at correct time