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

Re: [HTCondor-users] How can I run condor_history from a file using the python bindings?



well... I guess I needed to add "-l" to the condor_history command...
Sorry for the spam :)

El vie., 2 oct. 2020 a las 9:37, Jose Caballero
(<jcaballero.hep@xxxxxxxxx>) escribiÃ:
>
> Hi,
>
> Running condor 8.6.13 on EL7.
>
> I have just tried this snippet [1], similar to the one in the documentation.
> However, this is the only output I get [2].
> The file exists and is readable.
> What am I missing?
>
> Thanks a lot in advance.
> Cheers,
> Jose
>
> [1]
> import classad
> import os
> fd = os.popen("condor_history -file /root/history")
> ads = classad.parseOldAds(fd)
> for ad in ads: print ad['ClusterId']
>
> [2]
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ValueError: ID     OWNER          SUBMITTED   RUN_TIME     ST COMPLETED   CMD