Sergey Moskvin
02/08/2025, 9:09 PMMarvin
02/08/2025, 9:09 PMconcurrency_limit
field in your deployment configuration to specify the maximum number of concurrent flow runs. In your case, you would set this to 1
.
2. Collision Strategy: You can also configure the collision_strategy
for how new runs should be handled once the concurrency limit is reached. Options include:
- `ENQUEUE`: New runs will wait for a slot to become available.
- `CANCEL_NEW`: New runs will be canceled if the limit is reached.
You can manage these settings via the Prefect CLI, API, or Prefect Cloud UI.
For more detailed information, you can refer to the Prefect documentation on deployment configuration here.
Let me know if you need further assistance!Sergey Moskvin
02/08/2025, 9:14 PMcollision_strategy?
Marvin
02/08/2025, 9:15 PMcollision_strategy
were not retrieved in the search results. However, in Prefect 3.x, collision_strategy
is a configuration option used to determine the behavior of new flow runs when the concurrency limit is reached. Here are the typical options:
- `ENQUEUE`: New runs will wait for a slot to become available.
- `CANCEL_NEW`: New runs will be canceled if the limit is reached.
For more detailed documentation, I recommend checking the Prefect 3.x deployment documentation directly or exploring the Prefect GitHub repository to see if there are more insights in the source code or issues related to collision_strategy
.
You can also visit the Prefect documentation for more comprehensive information.