Ask Your Question
0

simpler alternative to celery

asked 2013-04-24 17:34:26 -0600

mether gravatar image

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.

edit retag flag offensive close merge delete

Comments

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

mether gravatar imagemether ( 2013-04-24 17:42:04 -0600 )edit

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

mether gravatar imagemether ( 2013-04-24 23:18:38 -0600 )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 gravatar imageEvgeny ( 2013-04-25 00:47:42 -0600 )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 gravatar imagemether ( 2013-04-25 00:51:25 -0600 )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 gravatar imageEvgeny ( 2013-04-25 00:58:57 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-04-24 23:26:21 -0600

Evgeny gravatar image

@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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2013-04-24 17:34:26 -0600

Seen: 198 times

Last updated: Apr 24 '13