This document describes the current stable version of django_celery_monitor (1.1). For development docs, go here.
django_celery_monitor.models¶
The data models for the task and worker states.
-
class
django_celery_monitor.models.TaskState(*args, **kwargs)[source]¶ The data model to store the task state in.
-
args¶ The positional task arguments.
Whether the task has been expired and will be purged by the event framework.
-
kwargs¶ The keyword task arguments.
-
objects= <django.db.models.manager.ManagerFromTaskStateQuerySet object>¶ A
TaskStateManagerinstance to query theTaskStatemodel.
-
result¶ The result of the task.
-
retries¶ The number of retries.
-
runtime¶ The task runtime in seconds.
-
state¶ The
task stateas returned by Celery.
-
traceback¶ The Python error traceback if raised.
-
worker¶ The worker responsible for the execution of the task.
-
-
class
django_celery_monitor.models.WorkerState(*args, **kwargs)[source]¶ The data model to store the worker state in.
-
hostname¶ The hostname of the Celery worker.
-
objects= <django.db.models.manager.ManagerFromWorkerStateQuerySet object>¶ A
ExtendedManagerinstance to query theWorkerStatemodel.
-