PrefectHQ
prefect
BlogDocsChangelog

fix: `exception_to_crashed_state_sync` fails without async backend

#20139Merged
Comparing
fix/exception-to-crashed-state-sync-no-async-backend
(
b975513
) with
main
(
554b7a2
)
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%
603 µs603.5 µs

Ignored

bench_task_submit
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
-40%
7.8 ms13 ms
bench_flow_call[options1]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
0%
107.8 ms107.5 ms
bench_flow_call[options0]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-2%
162.1 ms165.8 ms
bench_import_prefect
benches/bench_import.py
Ignored
CodSpeed Performance Gauge
0%
1.1 s1.1 s
bench_flow_decorator
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
+1%
5.6 ms5.5 ms
bench_task_call
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
-4%
32.1 ms33.6 ms

Commits

Click on a commit to change the comparison range
Base
main
554b7a2
-0.21%
fix exception_to_crashed_state_sync to work without async backend wrap anyio.get_cancelled_exc_class() in try/except to handle the case where no async backend is running. since anyio cancellation exceptions can only occur in async contexts, we can safely skip the check when called from sync-only code.
94e5c33
2 days ago
by zzstoatzz
+0.21%
fix deferred imports in test, add guidance to AGENTS.md - move signal and TerminationSignal imports to top of test file - add explicit guidance to avoid deferred imports unless necessary
b975513
2 days ago
by zzstoatzz
© 2026 CodSpeed Technology
Home Terms Privacy Docs