couchdb.rst 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. .. _broker-couchdb:
  2. ===============
  3. Using CouchDB
  4. ===============
  5. .. _broker-couchdb-installation:
  6. Installation
  7. ============
  8. For the CouchDB support you have to install additional dependencies.
  9. You can install both Celery and these dependencies in one go using
  10. either the `celery-with-couchdb`_, or the `django-celery-with-couchdb` bundles:
  11. .. code-block:: bash
  12. $ pip install -U celery-with-couchdb
  13. .. _`celery-with-couchdb`:
  14. http://pypi.python.org/pypi/celery-with-couchdb
  15. .. _`django-celery-with-couchdb`:
  16. http://pypi.python.org/pypi/django-celery-with-couchdb
  17. .. _broker-couchdb-configuration:
  18. Configuration
  19. =============
  20. Configuration is easy, set the transport, and configure the location of
  21. your CouchDB database::
  22. BROKER_URL = 'couchdb://localhost:5984/database_name'
  23. Where the URL is in the format of::
  24. couchdb://userid:password@hostname:port/database_name
  25. The host name will default to ``localhost`` and the port to 5984,
  26. and so they are optional. userid and password are also optional,
  27. but needed if your CouchDB server requires authentication.
  28. .. _couchdb-results-configuration:
  29. Results
  30. -------
  31. Storing task state and results in CouchDB is currently **not supported**.
  32. .. _broker-couchdb-limitations:
  33. Limitations
  34. ===========
  35. The CouchDB message transport does not currently support:
  36. * Remote control commands (:program:`celery inspect`,
  37. :program:`celery control`, broadcast)