mirror of
https://github.com/django/django.git
synced 2025-10-12 00:09:11 +00:00
This work implements what was defined in DEP 14 (https://github.com/django/deps/blob/main/accepted/0014-background-workers.rst). Thanks to Raphael Gaschignard, Eric Holscher, Ran Benita, Sarah Boyce, Jacob Walls, and Natalia Bidart for the reviews.
22 lines
525 B
Python
22 lines
525 B
Python
from django.core.exceptions import ImproperlyConfigured
|
|
|
|
|
|
class TaskException(Exception):
|
|
"""Base class for task-related exceptions. Do not raise directly."""
|
|
|
|
|
|
class InvalidTask(TaskException):
|
|
"""The provided Task is invalid."""
|
|
|
|
|
|
class InvalidTaskBackend(ImproperlyConfigured):
|
|
"""The provided Task backend is invalid."""
|
|
|
|
|
|
class TaskResultDoesNotExist(TaskException):
|
|
"""The requested TaskResult does not exist."""
|
|
|
|
|
|
class TaskResultMismatch(TaskException):
|
|
"""The requested TaskResult is invalid."""
|