diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-12-15 19:20:28 -0300 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-12-15 19:20:28 -0300 |
commit | 8bb549c6b8341b0a8bde21008ff4feb52fa42bb7 (patch) | |
tree | 8d609587674cfe375c4e3fcae602256b922a4e9b | |
parent | b5570a1fb53cc3849d43f04cf66314a7f608411a (diff) | |
parent | ecb59d395bb69adea5540722a600e48bf72ed65e (diff) | |
download | askbot-8bb549c6b8341b0a8bde21008ff4feb52fa42bb7.tar.gz askbot-8bb549c6b8341b0a8bde21008ff4feb52fa42bb7.tar.bz2 askbot-8bb549c6b8341b0a8bde21008ff4feb52fa42bb7.zip |
Merge branch 'adolfo'
-rw-r--r-- | askbot/doc/source/optional-modules.rst | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/askbot/doc/source/optional-modules.rst b/askbot/doc/source/optional-modules.rst index 164f2f8c..93f7129a 100644 --- a/askbot/doc/source/optional-modules.rst +++ b/askbot/doc/source/optional-modules.rst @@ -136,3 +136,31 @@ To enable authentication for self hosted wordpress sites(wordpress.com blogs wil * Upload an icon for display in the login area. After doing this steps you should be able to login with your self hosted wordpress site user/password combination. + + +Celery for background jobs +========================== + +Askbot supports `celery <http://celeryproject.org/>`_ distributed task queue for some task, to enable it follow the following steps: + +* Install the following packages: `celery <http://pypi.python.org/pypi/django-celery>`_, `django-celery <http://pypi.python.org/pypi/django-celery>`_, `django-kombu <http://pypi.python.org/pypi/django-kombu>`_ +* Set **CELERY_ALWAYS_EAGER** setting value to **False** +* Run the celery daemon: for this you can use generic init scripts or supervisor, `celery documentation have more information <http://docs.celeryproject.org/en/latest/cookbook/daemonizing.html>`_ + +For `supervisor <http://supervisord.org/>`_: add this sample config file named askbot.conf into /etc/supervisor/conf.d/ directory:: + + [program:askbot_celery] + command=celeryd --loglevel=INFO + + environment=PYTHONPATH=/path/to/project + directory=/path/to/project + + user=nobody + numprocs=1 + stdout_logfile=/var/log/askbot_celery.log + stderr_logfile=/var/log/askbot_celery.err + autostart=true + autorestart=true + startsecs=10 + +Then run **supervisorctl update** and it will be started. For more information about job handling with supervisor please visit `this link <http://supervisord.org/>`_. |