Celery with non-homogenous tasks
I have two celery workers, worker 1 has tasks A and B, worker 2 with tasks A, B, and C. If I submit a task C, it doesn't seem to be executed in th开发者_运维知识库e celery worker that has task C; is there some way I can make sure that only worker 2 gets assigned tasks C?
I'd take a look at routing tasks in the documentation. You can create queues with specific topics, and specify which worker(s) can handle which queue(s).
精彩评论