(self, method, arguments=None, reply_to=None,
ticket=None, **kwargs)
| 725 | beat_pidbox = None |
| 726 | |
| 727 | def dispatch(self, method, arguments=None, reply_to=None, |
| 728 | ticket=None, **kwargs): |
| 729 | owner = self.beat_pidbox |
| 730 | if owner is not None and owner.is_stale(): |
| 731 | warning('beat pidbox: not answering %s, the scheduler has ' |
| 732 | 'not ticked for %.1fs (over the %ss limit).', |
| 733 | method, owner.tick_age(), owner.max_tick_age) |
| 734 | return None |
| 735 | return super().dispatch(method, arguments, reply_to, ticket, |
| 736 | **kwargs) |
| 737 | |
| 738 | |
| 739 | class BeatPidbox: |