<@ULVA73B9P> I need to understand the concept of w...
# ask-marvin
h
@Marvin I need to understand the concept of work pools, work queues and workers. Starting a prefect server also creates a default agent work pool. This pool contains the default work queue and running flows already. But the default queue is unhealthy. Also how to add a new work pool, the infrastructure selection is empty. Adding agents will create new workflow queues.
m
Work pools and workers bridge the Prefect orchestration environment with your execution environment. When a deployment creates a flow run, it is submitted to a specific work pool for scheduling. A worker running in the execution environment can poll its respective work pool for new runs to execute, or the work pool can submit flow runs to serverless infrastructure directly, depending on your configuration (source). Each work pool has a "default" queue that all work will be sent to by default. Additional queues can be added to a work pool. Work queues enable greater control over work delivery through fine-grained priority and concurrency. Each work queue has a priority indicated by a unique positive integer. Lower numbers take precedence over higher numbers (source). For more detailed information about workers, you can read this blog post. As for your issue with the unhealthy default queue and adding a new work pool, I couldn't find specific information in the Prefect documentation. It might be a good idea to reach out to the Prefect community or support for help with these issues.