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

Method simple_task

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

Source from the content-addressed store, hash-verified

1968
1969 @self.app.task(bind=True)
1970 def simple_task(task_self):
1971 return {
1972 'task_id': task_self.request.id,
1973 'parent_id': task_self.request.parent_id,
1974 'root_id': task_self.request.root_id,
1975 }
1976
1977 result = simple_task.apply()
1978 assert isinstance(result, EagerResult)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected