PrefectHQ
prefect
BlogDocsChangelog

Fix KeyError crash caused by dead cancellation tracking code in worker

#19866Merged
Comparing
remove-dead-worker-cancellation-code
(
86a1799
) with
main
(
56693d4
)
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.8 µs463.9 µs

Ignored

bench_flow_call[options1]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
0%
107.6 ms107.4 ms
bench_task_call
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
+3%
32.7 ms31.8 ms
bench_task_submit
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
+18%
11.8 ms10 ms
bench_flow_decorator
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-12%
5.1 ms5.7 ms
bench_flow_call[options0]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-2%
162.9 ms166 ms
bench_import_prefect
benches/bench_import.py
Ignored
CodSpeed Performance Gauge
0%
1.1 s1.1 s

Commits

Click on a commit to change the comparison range
Base
main
56693d4
-0.1%
Fix KeyError crash caused by dead cancellation tracking code in worker Remove unused `_cancelling_flow_run_ids` set and related code that would cause a KeyError when the scheduled removal task ran, since the flow run ID was never actually added to the set. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
86a1799
2 days ago
by jakekaplan
© 2025 CodSpeed Technology
Home Terms Privacy Docs