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

Re: [HTCondor-users] Job submission using the Python bindings



Yes that helps, thanks John !

LeÂjeu. 4 janv. 2018 ÃÂ16:32, John M Knoeller <johnkn@xxxxxxxxxxx> a ÃcritÂ:

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 ?

Cheers

Â

Â

LeÂjeu. 4 janv. 2018 ÃÂ00:17, John M Knoeller <johnkn@xxxxxxxxxxx> a ÃcritÂ:

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

Â

From: HTCondor-users [mailto:htcondor-users-bounces@xxxxxxxxxxx] On Behalf Of FranÃois Steinmetz

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.

Â

LeÂmer. 3 janv. 2018 ÃÂ23:36, John M Knoeller <johnkn@xxxxxxxxxxx> a ÃcritÂ:

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

Â

Hi,

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/

_______________________________________________
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/