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

Function worker_retry

tests/conftest.py:111–129  ·  view source on GitHub ↗
(arq_redis_retry)

Source from the content-addressed store, hash-verified

109
110@pytest.fixture
111async def worker_retry(arq_redis_retry):
112 worker_retry_: Worker = None
113
114 def create(functions=[], burst=True, poll_delay=0, max_jobs=10, arq_redis=arq_redis_retry, **kwargs):
115 nonlocal worker_retry_
116 worker_retry_ = Worker(
117 functions=functions,
118 redis_pool=arq_redis,
119 burst=burst,
120 poll_delay=poll_delay,
121 max_jobs=max_jobs,
122 **kwargs,
123 )
124 return worker_retry_
125
126 yield create
127
128 if worker_retry_:
129 await worker_retry_.close()
130
131
132@pytest.fixture(name='create_pool')

Callers 1

test_worker_retryFunction · 0.85

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…