Avatar for the PrefectHQ user
PrefectHQ
prefect
BlogDocsChangelog

Add minimal V1→V2 concurrency adapter

#18971Merged
Comparing
nate/minimal-v1-v2-adapter
(
f55e540
) with
main
(
ae9f7a7
)
CodSpeed Performance Gauge
0%
Untouched
2
Ignored
6

Benchmarks

Passed

bench_task_decorator
benches/bench_tasks.py::bench_task_decorator
CodSpeed Performance Gauge
+1%
459.3 µs456.7 µs
bench_import_prefect_flow
benches/bench_import.py::bench_import_prefect_flow
CodSpeed Performance Gauge
0%
1.4 s1.4 s

Ignored

bench_task_call
benches/bench_tasks.py::bench_task_call
Ignored
CodSpeed Performance Gauge
-4%
163.8 ms170.8 ms
bench_flow_call[options0]
benches/bench_flows.py::bench_flow_call[options0]
Ignored
CodSpeed Performance Gauge
-1%
165.3 ms166.6 ms
bench_import_prefect
benches/bench_import.py::bench_import_prefect
Ignored
CodSpeed Performance Gauge
0%
2.7 ms2.7 ms
bench_task_submit
benches/bench_tasks.py::bench_task_submit
Ignored
CodSpeed Performance Gauge
-12%
4.8 ms5.4 ms
bench_flow_call[options1]
benches/bench_flows.py::bench_flow_call[options1]
Ignored
CodSpeed Performance Gauge
0%
106 ms106.1 ms
bench_flow_decorator
benches/bench_flows.py::bench_flow_decorator
Ignored
CodSpeed Performance Gauge
+2%
4.2 ms4.1 ms

Commits

Click on a commit to change the comparison range
Base
main
ae9f7a7
+0.29%
fix: address concurrency adapter feedback - bulk operations and upfront checks - Check all zero limits upfront before acquiring any slots - Use true bulk operations for V2 limit acquisition (single call) - Optimize decrement to use bulk reads and bulk decrements - Fix batching in lease search (no offset support in read_active_lease_ids) These changes prevent partial acquisitions and reduce rollback complexity as identified in review feedback.
f55e540
1 day ago
by zzstoatzz
© 2025 CodSpeed Technology
Home Terms Privacy Docs