PrefectHQ
prefect
BlogDocsChangelog

Update task engine to use GCLs to limit task concurrency

#18982Merged
Comparing
alexs/oss-6921-update-task-engine-to-use-v2-global-concurrency-limits
(
8416a78
) with
main
(
c2cb0ed
)
CodSpeed Performance Gauge
0%
Untouched
2
Ignored
6

Benchmarks

Passed

bench_task_decorator
benches/bench_tasks.py
CodSpeed Performance Gauge
+1%
459.9 µs457.2 µs
bench_import_prefect_flow
benches/bench_import.py
CodSpeed Performance Gauge
0%
1.4 s1.4 s

Ignored

bench_task_call
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
-3%
162 ms167.8 ms
bench_flow_call[options0]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
+1%
169.4 ms167.6 ms
bench_flow_decorator
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
0%
3.9 ms3.9 ms
bench_task_submit
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
-3%
5.6 ms5.8 ms
bench_import_prefect
benches/bench_import.py
Ignored
CodSpeed Performance Gauge
0%
2.7 ms2.7 ms
bench_flow_call[options1]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
0%
105.6 ms105.4 ms

Commits

Click on a commit to change the comparison range
Base
main
c2cb0ed
-0.1%
Update task engine to use GCLs to limit task concurrency
0a3f8ce
24 days ago
by desertaxle
+0.06%
Pass holder info from task engine
6934634
24 days ago
by desertaxle
-0.03%
Fixes failing tests
f9d3dfe
24 days ago
by desertaxle
+0.08%
Simplify context manager usage
9d54a66
24 days ago
by desertaxle
+0.28%
Fix TestTaskConcurrencyLimits tests for refactored task engine Updates test assertions to match the refactored task engine implementation: - Changed from positional to keyword argument expectations (names=...) - Updated no-tags tests to expect concurrency calls with empty names list - Added proper context manager mock setup for all tests All tests in TestTaskConcurrencyLimits now pass with the new keyword-only concurrency function calls in the task engine. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
8416a78
24 days ago
by desertaxle
© 2025 CodSpeed Technology
Home Terms Privacy Docs