code: def send_loop():
      
  
      while True:
          while not Message.objects.all():
              logging.debug("sleeping for %s seconds before checking queue again" % EMPTY_QUEUE_SLEEP)
              time.sleep(EMPTY_QUEUE_SLEEP)
          send_all()
docs: Loop indefinitely, checking queue at intervals of EMPTY_QUEUE_SLEEP and
      sending messages if any are on queue.