Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 546 Bytes

celery.md

File metadata and controls

18 lines (15 loc) · 546 Bytes

Celery tips

Raise exceptions from Celery tasks in tests

CELERY_EAGER_PROPAGATES_EXCEPTIONS = True

Celery task is not starting

>>> task_name.delay()
PreconditionFailed: Queue.declare: (406) PRECONDITION_FAILED - inequivalent arg 'x-max-priority' for queue 'queue_name' in vhost 'vhost_name': received the value '7' of type 'signedint' but current is none
# fix is simple - you must delete 'queue_name' queue (for recreating with new settings)

Celery run

celery -A app_name worker --loglevel=info