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

Function try_sleep

tests/test_cron.py:219–221  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

217 mocker.patch.object(arq.worker, 'keep_cronjob_progress', 0.1)
218
219 async def try_sleep(ctx):
220 if ctx['job_try'] == 1:
221 raise asyncio.CancelledError
222
223 worker: Worker = worker(
224 cron_jobs=[cron(try_sleep, microsecond=20, run_at_startup=True, max_tries=2)],

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…