staticnotdynamic
02/20/2024, 12:52 PM--match
like Prefect Agent ? If not, what is the alternative ?
Reference: Agents with dynamic work queue matching by anticorrelator · Pull Request #7099 · PrefectHQ/prefectNate
02/20/2024, 1:01 PMprefect worker start --help
with workers, you only really need to worry about queues if you need to worry about prioritizing work within a work pool, and just assigning a work pool with --pool my-pool
is all you needstaticnotdynamic
02/20/2024, 1:06 PMstaticnotdynamic
02/20/2024, 1:07 PMstaticnotdynamic
02/20/2024, 1:09 PMNate
02/20/2024, 1:13 PMhow can I ensure one run per deployment at a timeconcurrency limits! if you're around @Marvin please find docs on work pool level concurrency limits and tldr
Marvin
02/20/2024, 1:14 PMset-concurrency-limit
subcommand. This command sets a concurrency limit for the work pool, thus ensuring that your specified concurrency level is not exceeded when new work is polled.
For more detailed information, you can refer to the work pools documentation.staticnotdynamic
02/20/2024, 1:16 PMNate
02/20/2024, 1:17 PMstaticnotdynamic
02/20/2024, 1:19 PMNate
02/20/2024, 1:50 PMPENDING
until that slot clearsNate
02/20/2024, 1:50 PMstaticnotdynamic
02/20/2024, 2:42 PMsorry if I wasn't totally clearOh you weren't, and the docs are super helpful as well
its usually 1 work pool per unique infra environment type (like k8s, ECS, etc)Great. We do use Kubernetes on one work pool.
if you have N deployments all in 1 infra environment, where at most one among them should be running at a given timeThat's our setup indeed. I went in and tried Work pool limits, but our N deployments are mutually exclusive: the function of all produced flows do not intersect
staticnotdynamic
02/20/2024, 3:10 PMstaticnotdynamic
02/23/2024, 7:32 AMNate
02/23/2024, 2:14 PMstaticnotdynamic
02/25/2024, 9:09 AM