[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] python api: submitting spool jobs



Awesome, that helps, thx

On 14 Nov 2024, at 16:56, Stefano Belforte <stefano.belforte@xxxxxxx> wrote:

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))


_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at: https://www-auth.cs.wisc.edu/lists/htcondor-users/