Hi,
Aha, yes : âjob statusâ -> âjobstatusâ works. Not clear why the pipe detection -> truncation does not happen in this case while it does for the print format case.
JT
On 14 Dec 2022, at 13:48, Stefano Dal Pra <stefano.dalpra@xxxxxxxxxxxx> wrote:
On 14/12/22 13:10, Jeff Templon wrote:
Hi
You could possibly cherrypick from the
following:
[root@ce05-htc ~]# condor_history
-lim 10 -af 'strcat(ClusterId,".",ProcId)' owner Cmd
CpusProvisioned MemoryProvisioned '{"X","C"}[job
status-3]' 'interval(EnteredCurrentStatus-JobStartDate)'
'split(lastremotehost,".@")[1]'
Thanks!
I get
condor_history -lim 10 -af 'strcat(ClusterId,".",ProcId)'
owner Cmd CpusProvisioned MemoryProvisioned '{"X","C"}[job
status-3]' 'interval(EnteredCurrentStatus-JobStartDate)'
'split(lastremotehost,".@")[1]'
Error: invalid _expression_ : {"X","C"}[job status-3]
I think it is because of the line split added by thunderbird: that
should actually be '{"X","C"}[jobstatus - 3]'
with no
blanks in the middle.
Anyway, 3 and 4 are theoretically the only valid
jobStatus values for a finished job and you can use that trick to
get "REMOVED" or "DONE" instead:
'{"REMOVED","DONE"}[jobstatus
- 3]'
This could work for you before moving to htcondor v10.
Stefano
Not sure why it works for you. As far as the problem I
posted about, I found that I was looking at a v8
condor_history man page; the v10 page documents a new
option,
-wide[:number]
Restrict output to the given column width. Default
width is 80 columns, if -wide is used
without the optional number argument, the width
of the output is not restricted.
Using this option gives the desired behavior.
JT
5077389.471 faked_username
/storage/gpfs_data/some/long_path/simoutput/protons_100TeV_1PeV_Geant11/FTFP_BERT/flight_geometry/protons_1PeV_2600_3
599_221212-131146/job.sh 1 128 C 1+18:22:18
wn-205-13-27-07-a
5256230.0 pillhcb012 DIRAC_5g9watsq_pilotwrapper.py
1 2048 C 1+10:49:33 cn-313-06-05
5273081.0 belleprd DIRAC__byLP2_pilotwrapper.py 1 2048 C
2:14:34 cn-316-01-02
5274371.0 atlasprd005 runpilot2-wrapper.sh 1 2048 C
2:54:21 cn-316-03-02
5272259.0 atlasprd005 runpilot2-wrapper.sh 1 3072 C
7:18:41 cn-314-04-04
5272006.0 atlasprd005 runpilot2-wrapper.sh 1 2048 C
7:28:37 wn-204-11-13-01-mtu
5267541.0 atlasprd005 runpilot2-wrapper.sh 1 2048 C
16:49:49 cn-316-01-09
5273653.0 atlasprd005 runpilot2-wrapper.sh 1 2048 C
4:42:36 cn-315-03-04
5272308.0 atlasprd005 runpilot2-wrapper.sh 1 3072 C
7:12:43 wn-205-13-35-05-a
5272430.0 atlasprd005 runpilot2-wrapper.sh 1 3072 C
7:05:31 wn-205-11-05-02-a
5261559.0 pillhcb012 DIRAC_ghi0jsh1_pilotwrapper.py 1 2048
C 1+00:39:25 wn-204-11-35-02-mtu
|