Commits
Click on a commit to change the comparison rangefeat: add client-side configuration for deployment concurrency grace period
Add `grace_period_seconds` to deployment concurrency options, allowing users
to configure how long infrastructure has to start before concurrency slots
are released. This addresses #19410 and brings OSS feature parity with
Prefect Cloud.
Changes:
- Add `grace_period_seconds` field to `ConcurrencyOptions` (server) and
`ConcurrencyLimitConfig` (client) schemas with validation (60-86400s)
- Update `SecureFlowConcurrencySlots` orchestration policy to use the
configured grace period, falling back to server setting when not set
- Add CLI and YAML support for `grace_period_seconds` in deployments
- Add `_extract_concurrency_options` helper to reduce code duplication
- Filter None values from serialized concurrency config
Example usage in prefect.yaml:
```yaml
deployments:
- name: my-deployment
concurrency_limit:
limit: 1
collision_strategy: ENQUEUE
grace_period_seconds: 720
```
Closes #19410
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>