https://prefect.io logo
Title
j

Joan Gil

02/01/2023, 2:09 PM
Hey guys! Can I apply/upload my prefect 2.0 deployments in parallel? When I tried, it seemed like prefect blocks the 2nd upload until the 1st one completes
s

Sahil Rangwala

02/01/2023, 4:09 PM
Once you try to upload a file in the deployment command, this action is blocking due to the concurrent nature of the async functions under the hood. However, you are able to parallelize the work that is done within flows + tasks by incorporating a dask or ray task runner
j

Joan Gil

02/01/2023, 4:13 PM
Thank you @Sahil Rangwala! This is a very useful feature, but right now we’re trying to reduce our deployment time which is currently taking about 15 mins. Is there any way to Build & Apply the deployments in parallel?