Celery uses a database instead of rabbitmq

Source: Internet
Author: User
Tags rabbitmq
Out of the few users in the early stage and deployed in bluehost, for simple consideration, use a database instead of rabbitmq.

InstallDjango-kombu:

$ pip install -U django-kombu
Configuration

You can directly use the original databases database settings.

  1. Set broker transport:

    BROKER_URL = "django://" 
  2. Add to installed_apps:

    INSTALLED_APPS = ("djkombu", ) 
  3. Verify database settings:

    DATABASE_ENGINE = "mysql" DATABASE_NAME = "mydb" DATABASE_USER = "myuser" DATABASE_PASSWORD = "secret" 

  1. Synchronize databases:

    $ python manage.py syncdb
Restrictions

Not Supported currently

  • Remote Control Command (celeryev, broadcast)
  • Events, including Django admin monitor.
  • Using more than a few workers (can lead to messages being executed multiple times ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.