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

Function raise_second_time

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

Source from the content-addressed store, hash-verified

752 v = 0
753
754 async def raise_second_time(ctx):
755 nonlocal v
756 v += 1
757 if v > 1:
758 raise ValueError('xxx')
759
760 await arq_redis.enqueue_job('raise_second_time')
761 await arq_redis.enqueue_job('raise_second_time')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…