Is there a way to specify work-queue flow-run concurrency limits when a work queue is defined? I kno...
r
Is there a way to specify work-queue flow-run concurrency limits when a work queue is defined? I know they can be set via the UI or CLI (like this), but it seems this always has to happen after the work queue has been created, as an additional step (vs being able to do so in the prefect.YAML file). Wondering if I’m missing anything, or if this is indeed a requirement. Thanks! cc: @Jon
b
Hey Rowdy! Just to confirm, is the ask to explicitly create the new work_queue in the prefect.yaml?
You should be able to create a new work queue (with concurrency limits) in an existing work pool using the CLI. It'd look something like this:
Copy code
prefect work-queue create my-new-queue --limit 3 --pool docker-pool
the output looks like this:
Copy code
Created work queue with properties:
    name - 'my-new-queue'
    work pool - 'docker-pool'
    id - 6188b5e0-bb2e-4ff2-ac2c-e6f91c89e5a7
    concurrency limit - 3