PrefectHQ
prefect
BlogDocsChangelog

Add sigterm handling for `prefect flow-run execute`

#17352Merged
Comparing
flow-run-execute-signal-handling
(
2edf695
) with
main
(
99d9435
)
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%
443.5 µs443.6 µs

Ignored

bench_flow_decorator
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-1%
5.1 ms5.2 ms
bench_import_prefect
benches/bench_import.py
Ignored
CodSpeed Performance Gauge
0%
2.6 ms2.6 ms
bench_task_call
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
-2%
167 ms169.9 ms
bench_flow_call[options0]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-9%
157.7 ms173.1 ms
bench_task_submit
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
-13%
4.5 ms5.3 ms
bench_flow_call[options1]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-2%
106.8 ms109.2 ms

Commits

Click on a commit to change the comparison range
Base
main
99d9435
-0.03%
Add sigterm handling for `Runner.execute_flow_run`
bfe82d7
7 months ago
by desertaxle
+0.38%
Run state update in the same loop
c7d6ef4
7 months ago
by desertaxle
-0.42%
Improve signal handling via the event loop
0ae3f44
7 months ago
by desertaxle
-0.03%
Fix typing error
7123c6b
7 months ago
by desertaxle
+0.01%
Move signal handling away from `Runner` to CLI
6f63141
7 months ago
by desertaxle
+0.1%
Fix test issues
3689fca
7 months ago
by desertaxle
-0.08%
Fix test failure
f437fa3
7 months ago
by desertaxle
-0.03%
Fixes test failures
11d09bb
7 months ago
by desertaxle
-0.22%
Tweak test
f2032da
7 months ago
by desertaxle
+0.39%
Fine, it's sync now. Are you happy?
1c58e67
7 months ago
by desertaxle
+0.11%
Update test to reflect new reality
a0fd2f9
7 months ago
by desertaxle
-0.25%
f
32705fd
7 months ago
by desertaxle
+0.13%
Set `_rescheduling` back to `False` after a runner's flow runs are rescheduled
4f938d9
7 months ago
by desertaxle
-0.08%
Use `finally` for extra safety
5feae41
7 months ago
by desertaxle
+0.08%
Back out changes and add a note
2edf695
7 months ago
by desertaxle
© 2025 CodSpeed Technology
Home Terms Privacy Docs