celery.exceptions

Celery error types.

Error Hierarchy

exception celery.exceptions.AlreadyRegistered[源代码]

The task is already registered.

exception celery.exceptions.AlwaysEagerIgnored[源代码]

send_task ignores task_always_eager option.

exception celery.exceptions.BackendError[源代码]

An issue writing or reading to/from the backend.

exception celery.exceptions.BackendGetMetaError(*args, **kwargs)[源代码]

An issue reading from the backend.

exception celery.exceptions.BackendStoreError(*args, **kwargs)[源代码]

An issue writing to the backend.

exception celery.exceptions.CDeprecationWarning[源代码]

Warning of deprecation.

exception celery.exceptions.CPendingDeprecationWarning[源代码]

Warning of pending deprecation.

exception celery.exceptions.CeleryCommandException(message, exit_code)[源代码]

A general command exception which stores an exit code.

exception celery.exceptions.CeleryError[源代码]

Base class for all Celery errors.

exception celery.exceptions.CeleryWarning[源代码]

Base class for all Celery warnings.

exception celery.exceptions.ChordError[源代码]

A task part of the chord raised an exception.

exception celery.exceptions.DuplicateNodenameWarning[源代码]

Multiple workers are using the same nodename.

exception celery.exceptions.FixupWarning[源代码]

Fixup related warning.

exception celery.exceptions.Ignore[源代码]

A task can raise this to ignore doing state updates.

exception celery.exceptions.ImproperlyConfigured[源代码]

Celery is somehow improperly configured.

exception celery.exceptions.IncompleteStream[源代码]

Found the end of a stream of data, but the data isn't complete.

exception celery.exceptions.InvalidTaskError[源代码]

The task has invalid data or ain't properly constructed.

exception celery.exceptions.MaxRetriesExceededError(*args, **kwargs)[源代码]

The tasks max restart limit has been exceeded.

exception celery.exceptions.NotConfigured[源代码]

Celery hasn't been configured, as no config module has been found.

exception celery.exceptions.NotRegistered[源代码]

The task is not registered.

exception celery.exceptions.OperationalError[源代码]

Recoverable message transport connection error.

exception celery.exceptions.QueueNotFound[源代码]

Task routed to a queue not in conf.queues.

exception celery.exceptions.Reject(reason=None, requeue=False)[源代码]

A task can raise this if it wants to reject/re-queue the message.

exception celery.exceptions.Retry(message=None, exc=None, when=None, is_eager=False, sig=None, **kwargs)[源代码]

The task is to be retried later.

exc = None

Exception (if any) that caused the retry to happen.

humanize()[源代码]
message = None

Optional message describing context of retry.

when = None

Time of retry (ETA), either numbers.Real or datetime.

exception celery.exceptions.SecurityError[源代码]

Security related exception.

exception celery.exceptions.SecurityWarning[源代码]

Potential security issue found.

exception celery.exceptions.SoftTimeLimitExceeded[源代码]

The soft time limit has been exceeded. This exception is raised to give the task a chance to clean up.

exception celery.exceptions.TaskError[源代码]

Task related errors.

exception celery.exceptions.TaskPredicate[源代码]

Base class for task-related semi-predicates.

exception celery.exceptions.TaskRevokedError[源代码]

The task has been revoked, so no result available.

exception celery.exceptions.Terminated[源代码]

The worker processing a job has been terminated by user request.

exception celery.exceptions.TimeLimitExceeded[源代码]

The time limit has been exceeded and the job has been terminated.

exception celery.exceptions.TimeoutError[源代码]

The operation timed out.

exception celery.exceptions.WorkerLostError[源代码]

The worker processing a job has exited prematurely.

exception celery.exceptions.WorkerShutdown[源代码]

Signals that the worker should perform a warm shutdown.

exception celery.exceptions.WorkerTerminate[源代码]

Signals that the worker should terminate immediately.

celery.exceptions.reraise(tp, value, tb=None)[源代码]

Reraise exception.