MCPcopy
hub / github.com/celery/celery / info

Method info

celery/worker/request.py:674–686  ·  view source on GitHub ↗
(self, safe=False)

Source from the content-addressed store, hash-verified

672 self.send_event('task-rejected', requeue=requeue)
673
674 def info(self, safe=False):
675 return {
676 'id': self.id,
677 'name': self.name,
678 'args': self._args if not safe else self._argsrepr,
679 'kwargs': self._kwargs if not safe else self._kwargsrepr,
680 'type': self._type,
681 'hostname': self._hostname,
682 'time_start': self.time_start,
683 'acknowledged': self.acknowledged,
684 'delivery_info': self.delivery_info,
685 'worker_pid': self.worker_pid,
686 }
687
688 def humaninfo(self):
689 return '{0.name}[{0.id}]'.format(self)

Callers 12

query_taskFunction · 0.45
_revokeFunction · 0.45
rate_limitFunction · 0.45
time_limitFunction · 0.45
enable_eventsFunction · 0.45
disable_eventsFunction · 0.45
helloFunction · 0.45
_iter_schedule_requestsFunction · 0.45
reservedFunction · 0.45
activeFunction · 0.45
objgraphFunction · 0.45
task_message_handlerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected