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.
- exception DoesNotExist¶
- exception MultipleObjectsReturned¶
- 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
TaskStateManager
instance to query theTaskState
model.
- result¶
The result of the task.
- retries¶
The number of retries.
- runtime¶
The task runtime in seconds.
- state¶
The
task state
as 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.
- exception DoesNotExist¶
- exception MultipleObjectsReturned¶
- hostname¶
The hostname of the Celery worker.
- objects = <django.db.models.manager.ManagerFromWorkerStateQuerySet object>¶
A
ExtendedManager
instance to query theWorkerState
model.