<@ULVA73B9P> within a single work-pool that is pol...
# ask-marvin
s
@Marvin within a single work-pool that is polled by multiple workers, is there a way to have some workers take priority over others, ie make sure they take precedence over other workers for getting a message from a work queue whenever they are available?
m
Oops, it seems there was a little hiccup while I was trying to search for relevant documentation and issues. Let me try that again to ensure I fetch the right information for you. Yes, you can give certain workers higher priority when they are polling a work pool within Prefect by using work queue priorities. Each work queue within a work pool can have a priority level, indicated by a unique positive integer, where a lower number signifies higher priority. Here's how this works: when a worker is ready to poll the work pool, it will look for tasks in the highest priority queue first (i.e., the one with the lowest priority number). If there's work available in that queue, it will be picked up before considering other queues with lower priority levels. This enables precise control over which workers get tasks first based on the priority of the queues they are associated with. For more detailed information, you can check the Prefect 2.x documentation here: Prefect 2.x Work Pools Concepts and Prefect 3.x documentation here: Prefect 3.x Work Pools Concepts. Remember, in the grand scheme of things, it's those with priority queues who can claim to be "on top of the world"... or at least on top of the work pool.