MCPcopy
hub / github.com/celery/celery / second_order_replace1

Function second_order_replace1

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

Source from the content-addressed store, hash-verified

286
287@shared_task(bind=True)
288def second_order_replace1(self, state=False):
289 redis_connection = get_redis_connection()
290 if not state:
291 redis_connection.rpush('redis-echo', 'In A')
292 new_task = chain(second_order_replace2.s(),
293 second_order_replace1.si(state=True))
294 raise self.replace(new_task)
295 else:
296 redis_connection.rpush('redis-echo', 'Out A')
297
298
299@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