PrefectHQ
prefect
BlogDocsChangelog

fix: remove CANCELLED from EnforceCancellingToCancelledTransition to allow retrying cancelled flows

#20275Merged
Comparing
fix/cancelled-flow-retry-blocked
(
413eb4a
) with
main
(
517a6c0
)
CodSpeed Performance Gauge
0%
Untouched
2
Ignored
6

Benchmarks

Passed

bench_task_decorator
benches/bench_tasks.py
CodSpeed Performance Gauge
+1%
553.5 µs549.3 µs
bench_import_prefect_flow
benches/bench_import.py
CodSpeed Performance Gauge
0%
1.4 s1.4 s

Ignored

bench_flow_call[options1]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
0%
107.6 ms107.9 ms
bench_flow_call[options0]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-1%
106.2 ms107.1 ms
bench_task_call
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
+15%
22 ms19.2 ms
bench_flow_decorator
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-19%
5.2 ms6.4 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
+21%
108.6 ms89.8 ms

Commits

Click on a commit to change the comparison range
Base
main
517a6c0
+0.43%
fix: allow cancelled flows to be retried Remove CANCELLED from FROM_STATES in EnforceCancellingToCancelledTransition. This rule should only block transitions FROM CANCELLING, not CANCELLED. The rule name, docstring, and error message all reference "cancelling" states, but the implementation incorrectly included CANCELLED, preventing retries. Fixes #20271 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
413eb4a
2 hours ago
by zzstoatzz
© 2026 CodSpeed Technology
Home Terms Privacy Docs