MCPcopy
hub / github.com/celery/celery / second_order_replace2

Function second_order_replace2

t/integration/tasks.py:300–308  ·  view source on GitHub ↗
(self, state=False)

Source from the content-addressed store, hash-verified

298
299@shared_task(bind=True)
300def second_order_replace2(self, state=False):
301 redis_connection = get_redis_connection()
302 if not state:
303 redis_connection.rpush('redis-echo', 'In B')
304 new_task = chain(redis_echo.s("In/Out C"),
305 second_order_replace2.si(state=True))
306 raise self.replace(new_task)
307 else:
308 redis_connection.rpush('redis-echo', 'Out B')
309
310
311@shared_task(bind=True)

Callers

nothing calls this directly

Calls 6

chainClass · 0.90
get_redis_connectionFunction · 0.85
rpushMethod · 0.80
siMethod · 0.80
sMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected