Celery hangs when publish a task with incorrect broker url

Viewed 773

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.

1 Answers
Related