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

Function second_order_replace1

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

Source from the content-addressed store, hash-verified

381
382@shared_task(bind=True)
383def second_order_replace1(self, state=False):
384 redis_connection = get_redis_connection()
385 if not state:
386 redis_connection.rpush('redis-echo', 'In A')
387 new_task = chain(second_order_replace2.s(),
388 second_order_replace1.si(state=True))
389 raise self.replace(new_task)
390 else:
391 redis_connection.rpush('redis-echo', 'Out A')
392
393
394@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