celery.backends.mongodb

celery.backends.mongodb

MongoDB result store backend.

class celery.backends.mongodb.MongoBackend(\args, **kwargs*)[源代码]

  • cleanup()[源代码]

    Delete expired metadata.

  • collection None[源代码]

    Get the metadata task collection.

  • database None[源代码]

    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()[源代码]

  • supports_autoexpire = False

  • taskmeta_collection = ‘celery_taskmeta’

  • user = None