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

Method dispatch

celery/beat.py:727–736  ·  view source on GitHub ↗
(self, method, arguments=None, reply_to=None,
                 ticket=None, **kwargs)

Source from the content-addressed store, hash-verified

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
739class BeatPidbox:

Callers 1

test_panel_replyMethod · 0.80

Calls 2

is_staleMethod · 0.80
tick_ageMethod · 0.80

Tested by 1

test_panel_replyMethod · 0.64