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

Method stats

celery/worker/worker.py:407–415  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

405 }
406
407 def stats(self):
408 info = self.info()
409 info.update(self.blueprint.info(self))
410 info.update(self.consumer.blueprint.info(self.consumer))
411 try:
412 info['rusage'] = self.rusage()
413 except NotImplementedError:
414 info['rusage'] = 'N/A'
415 return info
416
417 def __repr__(self):
418 """``repr(worker)``."""

Callers 1

statsFunction · 0.45

Calls 3

infoMethod · 0.95
rusageMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected