Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Celery hangs when publish a task with incorrect broker url

First of all, I would like to apologize for bad English.

I'm using celery with flask-restful. And when I trying publish celery task, the entire process hangs indefinitely. This occurs when I specify an incorrect value of broker url in celery config.

How I can fix this? How I can set timeout for task publishing and how I can set max retries to publish task?

I tried to use task_publish_retry directive set to False, but it's not work for me.

like image 206
Vir Avatar asked Dec 14 '25 23:12

Vir


1 Answers

I bumped into the same issue and could not find a solution yet, but it seems like a bug to me so I've opened an issue on github: Celery hangs indefinitely (instead of failing) if redis is not started #4556.

like image 173
nemesisdesign Avatar answered Dec 16 '25 14:12

nemesisdesign



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!