anyhow here's a code fragment which works for me for both v1 or v2 API's with HTCondor 23.x
HTH
submitResult = schedd.submit(description=jobJDL, count=1, spool=True) clusterId = submitResult.cluster() numProcs = submitResult.num_procs() if 'useHtcV2' in os.environ: schedd.spool(submitResult) else: myjobs = jobJDL.jobs(count=numProcs, clusterid=clusterId) schedd.spool(list(myjobs))