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

Function retry

tests/test_worker.py:209–211  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

207
208async def test_job_retry(arq_redis: ArqRedis, worker, caplog):
209 async def retry(ctx):
210 if ctx['job_try'] <= 2:
211 raise Retry(defer=0.01)
212
213 caplog.set_level(logging.INFO)
214 await arq_redis.enqueue_job('retry', _job_id='testing')

Callers

nothing calls this directly

Calls 2

RetryClass · 0.90
RetryJobClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…