Settings

Theme

Scheduling morning emails with Python and Celery

cucumbertown.com

56 points by deepakprakash 13 years ago · 18 comments

Reader

manish_gill 13 years ago

Isn't the ScheduleTime class doing redundant work? Why bother keeping a dictionary, dealing with ints and strings when you can directly use strftime/strptime?

Except for the friday/fri thing, which, to be honest, I don't see the point of. I'd rather have uniformity in my code.

est 13 years ago

alternatively: use uWSGI cron

http://uwsgi-docs.readthedocs.org/en/latest/PythonDecorators...

yeison 13 years ago

Did anyone else read this title as: 'Scheduling morning meals with Python and Celery'?

clicks 13 years ago

While we're on the topic -- there's also http://mailchimp.com/ if you want to outsource the job of sending subscription e-mail.

th 13 years ago

Would this create a problem around Daylight Saving Time until the user logs in again to reset their time offset?

  • aqeel 13 years ago

    getTimezoneOffset() would return the value after taking care of DST. So there shouldn't be any DST related inconsistencies. Now if the user moves to another timezone, and never hits one of our page, there is no direct way of tracking his/her change in location.

    • th 13 years ago

      I mean that starting mid-March a user who had previously been in a -8:00 UTC offset would then be in a -7:00 UTC offset and you wouldn't know the timezone offset changed until they visited the website again.

      • Cherian 13 years ago

        That’s certainly a problem. But this solution is better than being totally off. Worst case the person gets the mail in the previous timezone he registered which should be before the DST.

ieze 13 years ago

This doesn't handle daylight saving time.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection