Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] Env vars to make htcondor.Schedd() Just Work?
- Date: Fri, 19 Sep 2025 17:26:06 -0500 (CDT)
- From: Todd L Miller <tlmiller@xxxxxxxxxxx>
- Subject: Re: [HTCondor-users] Env vars to make htcondor.Schedd() Just Work?
I realized I should send along the script I actually tested. It
didn't succeed, because I haven't gotten around to fixing the
authentication issue, but commenting out the SCHEDD_HOST line changes the
error message from one about SSL to one about not being able to locate the
"local" schedd, which ought to be sufficient to prove the point.
Note that in these examples I'm actually using an FQDN for
SCHEDD_HOST, which sometimes matters (even though it shouldn't). You can
try setting SCHEDD_NAME in the container to a string containing an '@'
sign to bypass any weirdness there. (Restart HTCondor after doing so.)
-- ToddM
#!/usr/bin/env python3
import os
os.environ['_CONDOR_COLLECTOR_HOST'] = "minicondor:9618"
os.environ['_CONDOR_SCHEDD_HOST'] = "minicondor"
import htcondor2
s = htcondor2.Schedd()
sub = htcondor2.Submit({
"executable": "/bin/sleep",
"initialdir": "/tmp",
"arguments": "30",
"output": "/tmp/sleep.out",
"error": "/tmp/sleep.err",
"log": "/tmp/sleep.log",
})
s.submit(sub)