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

Function test_error_success

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

Source from the content-addressed store, hash-verified

601
602
603async def test_error_success(arq_redis: ArqRedis, worker):
604 j = await arq_redis.enqueue_job('fails')
605 worker: Worker = worker(functions=[func(fails, name='fails')])
606 await worker.main()
607 assert (worker.jobs_complete, worker.jobs_failed, worker.jobs_retried) == (0, 1, 0)
608 info = await j.result_info()
609 assert info.success is False
610
611
612async def test_many_jobs_expire(arq_redis: ArqRedis, worker, caplog):

Callers

nothing calls this directly

Calls 5

funcFunction · 0.90
workerFunction · 0.85
enqueue_jobMethod · 0.80
mainMethod · 0.80
result_infoMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…