MCPcopy
hub / github.com/celery/celery / child_task

Method child_task

t/integration/test_tasks.py:562–572  ·  view source on GitHub ↗
(task_self)

Source from the content-addressed store, hash-verified

560
561 @manager.app.task(bind=True)
562 def child_task(task_self):
563
564 # Call grandchild task via apply()
565 grandchild_data = grandchild_task.apply().get()
566 return {
567 'task_id': task_self.request.id,
568 'parent_id': task_self.request.parent_id,
569 'root_id': task_self.request.root_id,
570 'name': 'child_task',
571 'grandchild_data': grandchild_data
572 }
573
574 @manager.app.task(bind=True)
575 def parent_task(task_self):

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected