code: def harakiri(self, *_):
          
          if self.shutting_down:
              self.logger.warning('Graceful shutdown failed after {}s. Exiting now!'.format(
                  self.settings['harakiri']['shutdown_grace']
              ))
              sys.exit(1)
          else:
              self.logger.warning('No activity during {}s, triggering harakiri with grace {}s'.format(
                  self.settings['harakiri']['timeout'],
                  self.settings['harakiri']['shutdown_grace'],
              ))
              self.shutting_down = True
              signal.alarm(self.settings['harakiri']['shutdown_grace'])
docs: Handles the reception of a timeout signal indicating that a request has been processing for too long, as
          defined by the Harakiri settings.