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

Method test_task

t/unit/tasks/test_tasks.py:2050–2055  ·  view source on GitHub ↗
(task_self)

Source from the content-addressed store, hash-verified

2048
2049 @self.app.task(bind=True)
2050 def test_task(task_self):
2051 return {
2052 'task_id': task_self.request.id,
2053 'parent_id': task_self.request.parent_id,
2054 'root_id': task_self.request.root_id,
2055 }
2056
2057 # Create a mock parent task with no root_id
2058 mock_parent = Mock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected