First time here? Check out the FAQ!
0

simpler alternative to celery

Ask Fedora doesn't use celery and sends mails sync now. I requested Fedora infrastructure to enable it and there is some reluctance

abadger1999> mether: yeah -- someone could look into programming much simpler async email sending (if that's the bottleneck) -- it's probably preferable as it's trading one-time programmer cost (assuming that it's acceptable upstream) for ongoing sysadmin maintenance burden.

<abadger1999> mether: I haven't looked at the code -- I just know that implementing a celery infrastructure for one isolated feature isn't a good trade for us.

<abadger1999> especially when there are other means to do it in the general case.

mether's avatar
1.5k
mether
asked 2013-04-24 17:34:26 -0500
edit flag offensive 0 remove flag close merge delete

Comments

Using https://github.com/pinax/django-mailer might be a good alternative

mether's avatar mether (2013-04-24 17:42:04 -0500) edit

looks like https://pypi.python.org/pypi/django-post_office/ is better maintained. Let me play around with this.

mether's avatar mether (2013-04-24 23:18:38 -0500) edit

This one seems to be usable by configuration, no? If so we won't need to do anything you could just use that email backend on your deployment.

Evgeny's avatar Evgeny (2013-04-25 00:47:42 -0500) edit

yes. it appears to be. you could test and document it and provide a template for the email however by default if you wish to

mether's avatar mether (2013-04-25 00:51:25 -0500) edit

@mether thanks :) I hope someone else could contribute here. Could your colleagues make a fork, update documentation and make pull request? To make this default I think - not a great idea, because it requires a cron job and the instant notifications won't be instant any more.

Evgeny's avatar Evgeny (2013-04-25 00:58:57 -0500) edit
add a comment see more comments

1 Answer

1

@mether imo your friends overestimate the difficulty, celery can be activated by setting

CELERY_ALWAYS_EAGER = False

And starting the daemon with

python manage.py celeryd

We might use some library for mailing, but we need a strong reason to replace celery.

Evgeny's avatar
13.2k
Evgeny
answered 2013-04-24 23:26:21 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments