Tejas Shah
02/21/2024, 9:38 AMMarvin
02/21/2024, 9:38 AMflow.deploy
instead of flow.serve
. Work pools are a feature that allows you to bridge between the Prefect orchestration layer and dynamically provisioned infrastructure for flow runs, but the flow.serve
method does not seem to have a direct way to specify work pools.
To use work pools with Prefect deployments, you will want to define your deployments with consideration for the work pools. A change in deployment methods is required when using work-pool-based execution. More details on this topic are available in the Prefect documentation, which you can find here:
- Understanding Work Pools
- Work Pools Tutorial
Please note that I don't see a direct reference to flow.serve
in conjunction with work pools, so it sounds like you have two separate features here – one associated with flow.serve
for simple scheduling needs, and one with flow.deploy
when you escalate to the use of dynamic infrastructure and work pools. You might need to switch to flow.deploy
to specify using a work pool.Tejas Shah
02/21/2024, 9:44 AMMarvin
02/21/2024, 9:44 AMTejas Shah
02/21/2024, 9:44 AMMarvin
02/21/2024, 9:44 AMTejas Shah
02/21/2024, 9:53 AMMarvin
02/21/2024, 9:54 AMTejas Shah
02/21/2024, 9:58 AMMarvin
02/21/2024, 9:58 AM