code: def submit_task(rel_path, cache_string, buffer):
      
      global upload_queue
      global upload_thread
      upload_queue.put((rel_path, cache_string, buffer))
  
      if upload_thread is None or not upload_thread.is_alive():
          upload_thread = UploaderThread()
          upload_thread.start()
docs: Put an upload job on the queue, and start the thread if required