Avatar for the PrefectHQ user
PrefectHQ
prefect
BlogDocsChangelog

Fix async parent heartbeat starvation from sync subflows

#21177
Comparing
fix/async-parent-heartbeat-starvation
(
b973dd5
) with
main
(
e5a389c
)
CodSpeed Performance Gauge
0%
Untouched
2
Ignored
6

Benchmarks

8 total
bench_task_decorator
benches/bench_tasks.py
CodSpeed Performance Gauge
+1%
551.9 µs548.4 µs
bench_import_prefect_flow
benches/bench_import.py
CodSpeed Performance Gauge
0%
1.4 s1.4 s
bench_flow_decorator
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
0%
4.8 ms4.8 ms
bench_task_call
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
+1%
7.7 ms7.6 ms
bench_flow_call[options1]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-2%
113.1 ms115.5 ms
bench_import_prefect
benches/bench_import.py
Ignored
CodSpeed Performance Gauge
0%
1.1 s1.1 s
bench_flow_call[options0]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
0%
112.7 ms112.8 ms
bench_task_submit
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
×4.4
16 ms3.6 ms

Commits

Click on a commit to change the comparison range
Base
main
e5a389c
+0.14%
fix: use thread for async flow heartbeat to prevent starvation
4bf5cfb
14 hours ago
by zzstoatzz
+0.17%
fix: avoid blocking event loop in async heartbeat cleanup
b973dd5
12 hours ago
by zzstoatzz
© 2026 CodSpeed Technology
Home Terms Privacy Docs