celery.backends.arangodb

ArangoDb result store backend.

class celery.backends.arangodb.ArangoDbBackend(url=None, *args, **kwargs)[源代码]

ArangoDb backend.

Sample url "arangodb://username:password@host:port/database/collection" arangodb_backend_settings is where the settings are present (in the app.conf) Settings should contain the host, port, username, password, database name, collection name else the default will be chosen. Default database name and collection name is celery.

抛出:

celery.exceptions.ImproperlyConfigured: -- if module https://pypi.org/project/pyArango/ is not available.

cleanup()[源代码]

Backend cleanup.

collection = 'celery'
property connection

Connect to the arangodb server.

database = 'celery'
property db

Database Object to the given database.

delete(key)[源代码]
property expires_delta
get(key)[源代码]
host = '127.0.0.1'
http_protocol = 'http'
key_t

str 的别名

mget(keys)[源代码]
password = None
port = '8529'
set(key, value)[源代码]
username = None
verify = False