Avatar for the PrefectHQ user
PrefectHQ
prefect
BlogDocsChangelog

Fix `uq_task_run__flow_run_id_task_key_dynamic_key` constraint violation with multiple background workers

#20697
Comparing
devin/1771284144-fix-task-run-recorder-upsert-constraint
(
f6f6277
) with
main
(
5eed1d1
)
CodSpeed Performance Gauge
0%
Untouched
2
Ignored
6

Benchmarks

8 total
bench_task_decorator
benches/bench_tasks.py
CodSpeed Performance Gauge
0%
549.9 µs549.9 µs
bench_import_prefect_flow
benches/bench_import.py
CodSpeed Performance Gauge
0%
1.4 s1.4 s
bench_flow_decorator
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
+25%
6 ms4.8 ms
bench_import_prefect
benches/bench_import.py
Ignored
CodSpeed Performance Gauge
0%
1.1 s1.1 s
bench_flow_call[options1]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
+1%
107.1 ms106.6 ms
bench_task_submit
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
-86%
12.6 ms90 ms
bench_flow_call[options0]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
0%
105.3 ms105.7 ms
bench_task_call
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
+8%
7.8 ms7.3 ms

Commits

Click on a commit to change the comparison range
Base
main
5eed1d1
-0.16%
Fix uq_task_run constraint violation with multiple background workers
31446fd
5 hours ago
by devin-ai-integration[bot]
+0.11%
Deduplicate states by (task_run_id, timestamp) before insertion
b75dd3c
2 hours ago
by devin-ai-integration[bot]
-0.01%
Keep latest timestamp in natural-key dedup within batch
f6f6277
2 hours ago
by devin-ai-integration[bot]
© 2026 CodSpeed Technology
Home Terms Privacy Docs