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

Method task_check_request_context

t/unit/tasks/test_tasks.py:327–328  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

325
326 @self.app.task(bind=True)
327 def task_check_request_context(self):
328 assert self.request.hostname == socket.gethostname()
329
330 self.task_check_request_context = task_check_request_context
331

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected