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

Re: [HTCondor-users] querying jobs history



The submit timestamp attribute for a job is QDate,  the time the job is completed is CompetionDate. 
These are both unix timestamps - i.e. number of seconds since the Unix epoch. 

So one way to do this would be to figure out the dates you want as unix timestamps and then plug them into to the constraint expression

condor_history -constraint 'QDate > 1485867600 && QDate <  1530363600 && CompletionDate > 1485867600 && CompletionDate < 
1530363600'

I used this page to get the numbers I used above
https://www.epochconverter.com/
it has recipes for a variety of languages.

-tj

-----Original Message-----
From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> On Behalf Of Carlos Adean
Sent: Wednesday, May 8, 2019 9:47 AM
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: [HTCondor-users] querying jobs history

Hi HTCondor Community,

Using condor_history is possible to get the jobs that were submitted/executed in a period of time? e.g: between Feb-2017 and Jul-2018.

I noticed there is a constraint argument for condor_history but I have no idea on how to use it. I can't found any useful example on google for my case.


Thanks

--
Carlos Adean
IT Team
linea.gov.br
skype: carlosadean

_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/