you can tell condor_submit to produce output that is more easily parsable. would that help?
so for your example submit file, use condor_submit -terse to see this outputâ
> condor_submit -terse foo.sub
10744.0 - 10744.2
-tj
From: HTCondor-users [mailto:htcondor-users-bounces@xxxxxxxxxxx]
On Behalf Of FranÃois Steinmetz
Sent: Wednesday, January 3, 2018 6:04 PM
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: Re: [HTCondor-users] Job submission using the Python bindings
Ok, too bad. Thanks for this clarification, John.
Also, is it possible to programatically get the ClusterID produced by condor_submit, in a cleaner way than parsing condor_submit's stdout ?
Ah, yes. it is not currently possible to duplicate the exact behavior of multiple queue statements (or queue in/from/matching) using the python bindings. You would need to create
a submit file and invoke condor_submit to have a single cluster.
-tj
Sent: Wednesday, January 3, 2018 5:09 PM
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: Re: [HTCondor-users] Job submission using the Python bindings
Thanks John, but in this case each job is submitted as a different cluster. So this is not equivalent to my submit file, and it is also encouraged to in the
documentation to submit multiple jobs as a single cluster.
You would change values in the submit hash in between calls to the queue() method on the submit hash.
something like this
sub = htcondor.Submit()
sub[âexecutableâ] = âfooâ
with sched.transaction() as txn:
sub[âargumentsâ] = â15 2000â
sub.queue(txn,1)
sub[âargumentsâ] = â30 2000â
sub.queue(txn,1)
sub[âargumentsâ] = â45 6000â
sub.queue(txn,1)
From: HTCondor-users [mailto:htcondor-users-bounces@xxxxxxxxxxx]
On Behalf Of FranÃois Steinmetz
Sent: Wednesday, January 3, 2018 2:36 PM
To: htcondor-users@xxxxxxxxxxx
Subject: [HTCondor-users] Job submission using the Python bindings
I can not figure out how to submit several jobs with different arguments, using the python bindings. Could anyone tell me how to translate
the following submission file ?
Executable = foo
Arguments = 15 2000
Queue
Arguments = 30 2000
Queue
Arguments = 45 6000
Queue
Thanks for your help,
FranÃois
_______________________________________________
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://lists.cs.wisc.edu/archive/htcondor-users/
_______________________________________________
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://lists.cs.wisc.edu/archive/htcondor-users/
|