Simple Queue with Celery and RabbitMQ

I am trying to implement a simple queue that does one task at a time. Unloading tasks from the main thread using Celery and setting concurrency = 1 in Celery setup work fine, but I can use more concurrent workers for other tasks.

Is there a way to tell Celery or RabbitMQ not to use multiple parallel workers for the task (except for forced concurrency = 1)? I cannot find anything in the documentation, but maybe these tools are not intended for a linear queue?

Thank!

+3
source share
1 answer

, . , , concurrency 1.

0

Source: https://habr.com/ru/post/1774247/


All Articles