def heartbeat(self, *args, **kwargs): """ Handle the heartbeat of a RQ worker. This writes the heartbeat records to the :class:`pulpcore.app.models.Worker` records. Args: args (tuple): unused positional arguments kwargs (dict): unused keyword arguments """ handle_worker_heartbeat(self.name) check_worker_processes() return super().heartbeat(*args, **kwargs)
def heartbeat(self, *args, **kwargs): """ Handle the heartbeat of a RQ worker. This writes the heartbeat records to the :class:`pulpcore.app.models.Worker` records. Args: args (tuple): unused positional arguments kwargs (dict): unused keyword arguments """ handle_worker_heartbeat(self.name) check_worker_processes() return super().heartbeat(*args, **kwargs)