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

Re: [HTCondor-users] headers on condor_status command



Hi Jeff,

maybe a python script could be an option to print details in a specific form?

E.g., for just the local schedd

>>> thisschedd=htcondor.Schedd()
>>> next(thisschedd.history(constraint=None,projection=["ClusterID","ProcID","RoutedFromJobId"],match=-1))
[ RoutedFromJobId = "4517247.7"; ProcID = 0; ClusterID = 14965037 ]

one could maybe wrap an own print decorator around the classad type - or pipe the json print out [1]

Cheers,
  Thomas


[1]
>>> job = next(thisschedd.history(constraint=None,projection=["ClusterID","ProcID","RoutedFromJobId"],match=-1))
>>> type(job)
<class 'classad.classad.ClassAd'>
>>> job.printJson()
'{\n "RoutedFromJobId": "4522024.1",\n "ProcID": 0,\n "ClusterID": 14972337\n}'

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature