MCPcopy Create free account
hub / github.com/python-arq/arq / test_queue_read_limit_calc

Function test_queue_read_limit_calc

tests/test_worker.py:669–673  ·  view source on GitHub ↗
(worker)

Source from the content-addressed store, hash-verified

667
668
669async def test_queue_read_limit_calc(worker):
670 assert worker(functions=[foobar], queue_read_limit=2, max_jobs=1).queue_read_limit == 2
671 assert worker(functions=[foobar], queue_read_limit=200, max_jobs=1).queue_read_limit == 200
672 assert worker(functions=[foobar], max_jobs=18).queue_read_limit == 100
673 assert worker(functions=[foobar], max_jobs=22).queue_read_limit == 110
674
675
676async def test_custom_queue_read_limit(arq_redis: ArqRedis, worker):

Callers

nothing calls this directly

Calls 1

workerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…