awlevin / HCI-twilio-survey

1 stars 0 forks source link

Firing too many messages at 9AM #1

Open awlevin opened 6 years ago

awlevin commented 6 years ago

Only checking seconds is invalid. Must also consider days!

exec_date objects have the following form: [datetime.timedelta(-3, 85494, 367397), datetime.timedelta(-2, 85494, 367397), datetime.timedelta(-1, 85494, 367397), datetime.timedelta(0, 85494, 367397), datetime.timedelta(1, 85494, 367397)]

awlevin commented 6 years ago

proposed solution: have the fired method, inquire_participants(), start a new timer that will fire the next day, each time the method is called