code: def query_jobs_schedule(repo_name, revision, auth):
      
      url = "%s/%s/rev/%s?format=json" % (SELF_SERVE, repo_name, revision)
      LOG.debug("About to fetch %s" % url)
      req = requests.get(url, auth=auth, timeout=TCP_TIMEOUT)
  
      # If the revision doesn't exist on buildapi, that means there are
      # no buildapi jobs for this revision
      if req.status_code not in [200]:
          return []
  
      return req.json()
docs: Query Buildapi for jobs.