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

Function test_run_check_error

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

Source from the content-addressed store, hash-verified

561
562
563async def test_run_check_error(arq_redis: ArqRedis, worker):
564 await arq_redis.enqueue_job('fails')
565 worker: Worker = worker(functions=[func(fails, name='fails')])
566 with pytest.raises(FailedJobs, match=r"1 job failed TypeError\('my type error'"):
567 await worker.run_check()
568
569
570async def test_run_check_error2(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…