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

# `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=None, bundle_path=None, **kwargs)

  Cassandra/AstraDB backend utilizing DataStax driver.

  Raises:

    celery.exceptions.ImproperlyConfigured – if module https://pypi.org/project/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.