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

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



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/