I have two workers:
celery worker -l info --concurrency=2 -A o_broker -n main_worker
celery worker -l info --concurrency=2 -A o_broker -n second_worker
I am using flower to monitor and receive API requests for these workers:
flower -A o_broker
to launch these celery workers from an API I use flower per the docs:
curl -X POST -d '{"args":[1,2]}' 'http://localhost:5555/api/task/async-apply/o_broker.add'
However, with this POST request it runs the task on either one of the workers. I need to choose to run a specific broker to complete the task.
How do I specify or set this up so I can choose what worker to use for the add task? If you have a solution using another API without flower, that would also work.