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

Re: [HTCondor-users] It looks like ParallelShutdownPolicy is not working.

The value for +ParallelShutdownPolicy must be a quoted string.   Your submit description is making it an attribute reference

so the value ends up being undefined.


Use the same trick you used to force the value of +Owner to be a quoted string. 




From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> On Behalf Of don_vanchos
Sent: Monday, July 29, 2019 2:14 PM
To: htcondor-users@xxxxxxxxxxx
Subject: [HTCondor-users] It looks like ParallelShutdownPolicy is not working.


I use the python HTCondor api with the simple parallel task:

with schedd.transaction() as shedd_transaction:
        sub = htcondor.Submit(
                "universe": "parallel",
                "executable": "/bin/ping",
                "machine_count": "1",
                "request_cpus": "0",
                "error": ".test.err",
                "output": ".test.out",
                "log": ".test.log",
                "should_transfer_files": "NO",
                "transfer_executable": "False",
                "run_as_owner": "True",
                "+Owner": f'"user"',
                "+ParallelShutdownPolicy": "WAIT_FOR_ALL",
        res = sub.queue_with_itemdata(
                        "arguments": "-c3",
                        "initial_dir": "/tmp/tmp1",
                        "arguments": "-c10",
                        "initial_dir": "/tmp/tmp2",

And the second job with the x.1 id ends prematurely! Can anyone please tell me why this is happening?


I added details and images with diagnostics on stackoverflow:



Sincerely yours,
Ivan Ergunov                                                 mailto:hozblok@xxxxxxxxx