#4627·celery

BROKER_CONNECTION_TIMEOUT not working.

Author: RaghavsalotraCreated Mar 29, 2018Updated Sep 30, 2026
LabelsIssue Type: DocumentationComponent: KombuIssue Type: Bug Report

Checklist

  • I am using celery version 4.1.0
  • I have verified that the issue exists against the master branch of Celery.

Steps to reproduce

Make rabbitmq borker unreachable , while using Task.delay() this call should for seconds mentioned in BROKER_CONNECTION_TIMEOUT but it is getting stuck for indefinite seconds.

Expected behavior

.delay() call should give timeout exception if it is not able to connect to broker.

Actual behavior

It is stuck in waiting for indefinite time or it could be the default seconds mentioned in kombu which celery is using under the hood to connect to Rabbitmq broker.