(self)
| 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)``.""" |