PrefectHQ
prefect
BlogDocsChangelog

Warn about in-memory concurrency lease storage on startup

#20090Closed
Comparing
yranjan06:fix/warn-memory-storage
(
f45614f
) with
main
(
69202ce
)
CodSpeed Performance Gauge
0%
Untouched
2
Ignored
6

Benchmarks

Passed

bench_task_decorator
benches/bench_tasks.py
CodSpeed Performance Gauge
0%
604.9 µs603 µ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.2 ms107.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
-1%
11.6 ms11.7 ms
bench_flow_decorator
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
+3%
5.3 ms5.1 ms
bench_task_call
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
-7%
31.7 ms34 ms
bench_flow_call[options0]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-3%
163.3 ms167.6 ms

Commits

Click on a commit to change the comparison range
Base
main
69202ce
+0.1%
Warn about in-memory concurrency lease storage on startup The default in-memory concurrency lease storage can cause issues in production when the server restarts, as all lease state is lost. This adds a warning on server startup when using the default storage to help users avoid production issues. Changes: - Add runtime check in server lifespan that warns if in-memory storage is active - Update setting description to clarify memory storage is unsafe for production - Warning appears once per server start with clear remediation steps
03c5757
3 days ago
+0.06%
Add unit tests for concurrency storage warning
f45614f
3 days ago
© 2026 CodSpeed Technology
Home Terms Privacy Docs