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

Re: [HTCondor-users] querying jobs history



Hi John


That's exactly what I needed. I'll use the date command to make this conversion.

Something like this:

$ date -d @1546308000
Ter Jan  1 00:00:00 -02 2019

$ date -d '2019-01-01' +%s
1546308000


Thank you!

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


----- Mensagem original -----
> De: "John M Knoeller" <johnkn@xxxxxxxxxxx>
> Para: "HTCondor-Users Mail List" <htcondor-users@xxxxxxxxxxx>
> Enviadas: Quarta-feira, 8 de maio de 2019 13:21:37
> Assunto: 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/
> 
> _______________________________________________
> 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/
>