<@ULVA73B9P> I am using a severless push workpool....
# ask-marvin
a
@Marvin I am using a severless push workpool. Is there any way to make sure only x amount of workers are run at the same time while the other jobs wait for execution ?
m
In Prefect, push work pools allow Prefect Cloud to submit flow runs for execution to serverless computing infrastructure without running a worker. They currently support execution in GCP Cloud Run Jobs, Azure Container Instances, and AWS ECS Tasks. You can create a push work pool that sends work to these services. However, the order in which flow runs are submitted for execution is determined by priority. If all flow runs are capable of being executed with no limitation due to concurrency or otherwise, priority is still used to determine the order of submission, but there is no impact on execution. If not all flow runs can be executed, usually as a result of concurrency limits, priority is used to determine which queue. For more detailed information, you can refer to the following documents: - Push Work to Serverless Computing Infrastructure - Work Pools Please note that the documents might not directly answer your question about limiting the number of workers at the same time while other jobs wait for execution. It's recommended to reach out to the Prefect community or support for more specific guidance on this topic.
n
you should be able to set a concurrency limit on your push work pool
a
Thanks! I assumed it was not possible : https://docs.prefect.io/latest/guides/deployment/push-work-pools/ . Am I reading the docs wrong or are they dated?
n
oh, i might be mistaken! i quickly checked on mobile :/ sorry about that. i may have fooled myself looking at our sandbox workspace
i can verify later when online
a
Well i tested it and it works, so i guess the docs are probably wrong?
n
that’s possible - i will check on this when we return from holiday - thanks for the update!
a
Hi Nate, the concurrency setting no longer works for the push pool now. I get this message:
Copy code
Response: {'detail': 'Push pool concurrency limits cannot be set.'}
Has it been patched somehow?
I see this is open : https://github.com/PrefectHQ/prefect/issues/11278 But when i was able to set the concurrency it did work for Azure. Is it something that does not work reliably? Are there any plans to implement this?
n
hey @Adam - we are planning to implement push pool concurrency soon!
a
That would be amazing, is there any estimated timeline please?
n
I'm sorry, i don't have a timeline to share right now. I'm not working on the feature myself, but I'd be hopeful that it would exist by the end of the year, but wouldnt say for certain