code: def queue_size(self):
          
          response = self._request("tasks/list")
          tasks = json.loads(response.content.decode('utf-8'))["tasks"]
  
          return len([t for t in tasks if t['status'] == 'pending'])
docs: Determine Cuckoo sandbox queue length
  
          There isn't a built in way to do this like with Joe
  
          :rtype:  int
          :return: Number of submissions in sandbox queue.