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

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



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