Sri Sudarsan
03/19/2025, 6:33 PMMarvin
03/19/2025, 6:33 PMprefect work-pool pause
or prefect work-pool resume
can control the flow of work to the workers.
3. Global Concurrency Limits: These can be configured with slot decay to control how often tasks can run. The decay rate determines how quickly slots refresh, allowing for a balance between task frequency and system load.
For more detailed guidance, you can refer to the following links:
- Concurrency Limits
- Work Pools
If you're using Prefect 3.x, these configurations should be applicable. If you need more specific examples or have other questions, feel free to ask.Sri Sudarsan
03/19/2025, 6:34 PMMarvin
03/19/2025, 6:34 PMJames Gatter
03/19/2025, 6:38 PMn_workers
to be a fraction of the number of cores available, threads_per_worker
to be 1, and memory_limit='auto'
on the cluster_kwargs
.