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

Function test_run_check_error2

tests/test_worker.py:570–576  ·  view source on GitHub ↗
(arq_redis: ArqRedis, worker)

Source from the content-addressed store, hash-verified

568
569
570async def test_run_check_error2(arq_redis: ArqRedis, worker):
571 await arq_redis.enqueue_job('fails')
572 await arq_redis.enqueue_job('fails')
573 worker: Worker = worker(functions=[func(fails, name='fails')])
574 with pytest.raises(FailedJobs, match='2 jobs failed:\n') as exc_info:
575 await worker.run_check()
576 assert len(exc_info.value.job_results) == 2
577
578
579async def test_keep_result_ms(arq_redis: ArqRedis, worker):

Callers

nothing calls this directly

Calls 4

funcFunction · 0.90
workerFunction · 0.85
enqueue_jobMethod · 0.80
run_checkMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…