def _handleShutdownSignals(self, signum, frame):
        assert signum in (signal.SIGINT, signal.SIGTERM)
        self.logger.info('signal -%d received', signum)
        self.shutdown()
dataset/ETHPy150Open facebook/sparts/sparts/vservice.py/VService._handleShutdownSignals/original