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

Function test_enqueue_multiple

tests/test_main.py:286–291  ·  view source on GitHub ↗
(arq_redis: ArqRedis, caplog)

Source from the content-addressed store, hash-verified

284
285
286async def test_enqueue_multiple(arq_redis: ArqRedis, caplog):
287 caplog.set_level(logging.DEBUG)
288 results = await asyncio.gather(*[arq_redis.enqueue_job('foobar', i, _job_id='testing') for i in range(10)])
289 assert sum(r is not None for r in results) == 1
290 assert sum(r is None for r in results) == 9
291 assert 'WatchVariableError' not in caplog.text

Callers

nothing calls this directly

Calls 1

enqueue_jobMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…