How to start a celery worker that only pushes tasks to the broker but does not consume them?

334 views Asked by At

I have the main producer of tasks in a webserver. I do not want the webserver to consume any tasks, so it should only send the tasks to the broker which get consumed by other nodes.

Right now I route tasks using the -Q option in the nodes by specifying the particular queues for each node. Is there a way to specify 0 queues for a worker?

Any help appreciated, thanks!

1

There are 1 answers

0
scytale On BEST ANSWER

You do not need to use a worker to push tasks to the broker - you can do that from a regular python process.