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

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/