Skip to content

runner

django_spire.celery.runner

logger = logging.getLogger(__name__) module-attribute

CeleryTaskRunner

Bases: Task

Base class for the actual Celery task: runs the lifecycle, the tracker tracks it.

Extend by overriding execute (class-based) or wrapping a function with celery_task. The worker writes only the result backend (no web DB); the web side owns the CeleryTask and syncs it from the backend.

runner_update_interval_seconds = 5 class-attribute instance-attribute

meta_data_model = None class-attribute instance-attribute

tracker property

run

Source code in django_spire/celery/runner.py
def run(self, *args: Any, **kwargs: Any) -> Any:
    return self._run_lifecycle(self.execute, args, kwargs)

execute

Source code in django_spire/celery/runner.py
def execute(self, *args: Any, **kwargs: Any) -> Any:
    raise NotImplementedError