I was wondering whether it is possible to set different prefetch multiplier for queues.
I have 2 queues, one has really short running tasks, other slightly longer. Queue for shorter tasks needs to be prioritized over other one.
To ensure that prioritization work reliable, this has to be set in celery config:
task_acks_late = True
worker_prefetch_multiplier = 1
However, that really hurts performance for fast task queue. Would it be possible to configure so that if worker is fetching from fast task queue, worker_prefetch_multiplier is 4 and if worker is fetching from slow task queuem worker_prefetch_multiplier is 1 ?