Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] Using condor_status with -target
- Date: Mon, 2 Dec 2019 19:26:07 +0000
- From: John M Knoeller <johnkn@xxxxxxxxxxx>
- Subject: Re: [HTCondor-users] Using condor_status with -target
I had a look at the code, and the -target option isn't used with -format or -af
I'm not sure it is used by any code that is still reachable - condor_status is quite complicated these days so it's hard to be certain.
for testing matching. I would suggest
condor_q -analyze
and
condor_q -analyze -reverse
You can supply both job and machine ads as files to condor_q for this purpose. using -job and -slot arguments.
-tj
-----Original Message-----
From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> On Behalf Of Fischer, Max (SCC)
Sent: Monday, December 2, 2019 7:54 AM
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: [HTCondor-users] Using condor_status with -target
Hi all,
Iâve been trying to debug some startd matching involving ``My`` and ``Target``. Realising that ``condor_status`` has a ``-target`` flag for this purpose, I tried using first some synthetic, then some real job classads.
However, it appears that the ``TARGET`` classad is always ``UNDEFINED``. Neither expressions of the startd nor custom ones can access ``TARGET``:
$ _CONDOR_TOOL_DEBUG=D_FULLDEBUG condor_status slot1@xxxxxxxxxxxxxxxxxxxx -target /tmp/classad.txt -af 'debug(target.RequestCpus)' -debug
â
12/02/19 14:34:54 (pid:1149180) (D_ALWAYS:2) Classad debug: [0.00119ms] target --> UNDEFINED
12/02/19 14:34:54 (pid:1149180) (D_ALWAYS:2) Classad debug: [0.05007ms] target.RequestCpus --> UNDEFINED
12/02/19 14:34:54 (pid:1149180) (D_ALWAYS:2) Classad debug: [0.06604ms] target.RequestCpus --> UNDEFINED
undefined
...
The ``classad.txt`` contains an old-style classad from ``condor_q -long`` with the requested attribute:
$ grep 'RequestCpus =' /tmp/classad.txt
RequestCpus = 1
Is the usage correct like this? Iâve check that the ``-target`` flag finds the file (it gives an error if the file does not exist).
Iâve tested this on 8.6.1, 8.6.4 and 8.6.11, 8.8.4 and did not find anything in the release notes.
Cheers,
Max