This document describes the current stable version of Celery (3.1). For development docs, go here.

celery.backends.mongodb

celery.backends.mongodb

MongoDB result store backend.

class celery.backends.mongodb.MongoBackend(app=None, url=None, **kwargs)[source]

MongoDB result backend.

Raises:celery.exceptions.ImproperlyConfigured – if module pymongo is not available.
as_uri(include_password=False)[source]

Return the backend as an URI.

Parameters:include_password – Censor passwords.
cleanup()[source]

Delete expired metadata.

collection[source]

Get the metadata task collection.

database[source]

Get database from MongoDB connection and perform authentication if necessary.

database_name = 'celery'
host = 'localhost'
max_pool_size = 10
options = None
password = None
port = 27017
process_cleanup()[source]
supports_autoexpire = False
taskmeta_collection = 'celery_taskmeta'
user = None