celery.backends.cassandra

Apache Cassandra result store backend using the DataStax driver.

class celery.backends.cassandra.CassandraBackend(servers=None, keyspace=None, table=None, entry_ttl=None, port=9042, bundle_path=None, **kwargs)[исходный код]

Cassandra/AstraDB backend utilizing DataStax driver.

Исключение:

celery.exceptions.ImproperlyConfigured – if module cassandra-driver is not available, or not-exactly-one of the cassandra_servers and the cassandra_secure_bundle_path settings is set.

as_uri(include_password=True)[исходный код]

Return the backend as an URI, sanitizing the password or not.

bundle_path = None

Location of the secure connect bundle zipfile (absolute path).

servers = None

hostname.

Type:

List of Cassandra servers with format

supports_autoexpire = True

If true the backend must automatically expire results. The daily backend_cleanup periodic task won’t be triggered in this case.

Back to Top