MCPcopy Create free account
hub / github.com/celery/celery / second_order_replace2

Function second_order_replace2

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

Source from the content-addressed store, hash-verified

393
394@shared_task(bind=True)
395def second_order_replace2(self, state=False):
396 redis_connection = get_redis_connection()
397 if not state:
398 redis_connection.rpush('redis-echo', 'In B')
399 new_task = chain(redis_echo.s("In/Out C"),
400 second_order_replace2.si(state=True))
401 raise self.replace(new_task)
402 else:
403 redis_connection.rpush('redis-echo', 'Out B')
404
405
406@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