PrefectHQ
prefect
BlogDocsChangelog

Migrate `resume_flow_run` from `sync_compatible` to `async_dispatch`

#19792Merged
Comparing
devin/1765821659-migrate-resume-flow-run-async-dispatch
(
ffa9331
) with
main
(
97d3356
)
CodSpeed Performance Gauge
0%
Untouched
2
Ignored
6

Benchmarks

Passed

bench_import_prefect_flow
benches/bench_import.py
CodSpeed Performance Gauge
0%
1.4 s1.4 s
bench_task_decorator
benches/bench_tasks.py
CodSpeed Performance Gauge
0%
462.9 µs464.4 µs

Ignored

bench_flow_call[options1]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
+1%
107.8 ms106.4 ms
bench_flow_decorator
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-10%
5.3 ms5.8 ms
bench_flow_call[options0]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
+2%
170 ms166.6 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
+79%
14.3 ms8 ms
bench_task_call
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
-1%
31.8 ms32.2 ms

Commits

Click on a commit to change the comparison range
Base
main
97d3356
-0.13%
Migrate resume_flow_run from sync_compatible to async_dispatch This change follows the pattern established in PR #19632 to migrate resume_flow_run from the @sync_compatible decorator to the @async_dispatch pattern. Changes: - Create aresume_flow_run as the explicit async implementation - Create resume_flow_run as the sync implementation with @async_dispatch - Export aresume_flow_run from main.py and __init__.py - Add tests for both sync and async code paths - Add None checks for flow_run.state and response.state for robustness Related to #15008 Co-Authored-By: Nate Nowack <nate@prefect.io>
ffa9331
1 day ago
by devin-ai-integration[bot]
© 2025 CodSpeed Technology
Home Terms Privacy Docs