PrefectHQ
prefect
BlogDocsChangelog

fix: exclude unset grace_period_seconds from deployment concurrency_options

#19784Merged
Comparing
fix/concurrency-limit-grace-period-optional
(
7d46802
) with
main
(
cc28c35
)
CodSpeed Performance Gauge
0%
Untouched
2
Ignored
6

Benchmarks

Passed

bench_task_decorator
benches/bench_tasks.py
CodSpeed Performance Gauge
0%
463.1 µs461.3 µs
bench_import_prefect_flow
benches/bench_import.py
CodSpeed Performance Gauge
0%
1.4 s1.4 s

Ignored

bench_flow_call[options0]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
+2%
168.5 ms165.4 ms
bench_task_call
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
+5%
32.5 ms30.9 ms
bench_flow_decorator
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-9%
5.3 ms5.9 ms
bench_flow_call[options1]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
0%
107.6 ms107.7 ms
bench_import_prefect
benches/bench_import.py
Ignored
CodSpeed Performance Gauge
0%
1.1 s1.1 s
bench_task_submit
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
-10%
14.1 ms15.7 ms

Commits

Click on a commit to change the comparison range
Base
main
cc28c35
+0.16%
fix: exclude unset grace_period_seconds from deployment concurrency_options When creating a deployment with concurrency_limit in prefect.yaml without specifying grace_period_seconds, the API returns a 422 error because grace_period_seconds: null is included in the payload. This fix serializes concurrency_options with exclude_unset=True so that fields with default values (like grace_period_seconds) are not included when not explicitly set. Closes #19778 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
7d46802
1 day ago
by zzstoatzz
© 2025 CodSpeed Technology
Home Terms Privacy Docs