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

celery.backends.database

SQLAlchemy result store backend.

class celery.backends.database.DatabaseBackend(dburi=None, engine_options=None, url=None, **kwargs)[source]

The database result backend.

ResultSession(session_manager=<celery.backends.database.session.SessionManager object>)[source]
cleanup()[source]

Delete expired meta-data.

property extended_result
subpolling_interval = 0.5

Time to sleep between polling each individual item in ResultSet.iterate. as opposed to the interval argument which is for each pass.

task_cls

alias of celery.backends.database.models.Task

taskset_cls

alias of celery.backends.database.models.TaskSet