code: def _get_and_execute(self):
          
          try:
              work = self.queue.get(timeout=self.max_seconds_idle)
          except queue.Empty:
              # max_seconds_idle has been exhausted, exiting
              self.end_notify()
              return False
          else:
              self._work(work)
              self.queue.task_done()
              return True
docs: :return: True if it should continue running, False if it should end its execution.