Closed caldwellst closed 3 months ago
So, we can do lubridate::ceiling_date(x, "15 minutes")
to get the next quarter hour from any time. But not so sure it's worth it to delay our mailing just so it reflects on HDX? Because it isn't the source data but simply the data from the alert which users will receive in their inbox.
I think probably best not to add this complexity for the moment, and the slight delay is understandable. Shall we close @hannahker @zackarno?
Agreed on closing this.
The push to HDX is quite slow due to the extensive Python installations. See the runs here. Thus, the data for Signals would not be reflected on HDX until approximately 10 minutes after the webhook is called. We probably want to delay sending emails until after the change is reflected on the HDX data. To do this, we can switch our
send
call to the Mailchimp API to a scheduling call.Scheduling documentation is here. Scheduling can be done every quarter, so likely we would want to do something to calculate the time now, add ten minutes, then find the next quarter hour.