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

Re: [Condor-users] end-time for failed jobs

On 11/04/2011 17:40, Erik Erlandson wrote:

so, you mean 'CompletionDate == 0' is equivalent to  'CompletionDate == undefined'?

Apologies, it should have been 'CompletionDate =!= 0'.

Another variation is:   'ifThenElse(JobStatus==4, CompletionDate, EnteredCurrentStatus)'

Yes, those work. But how can I use that _expression_ to construct a query string? e.g. if I want to query the jobs that finished this month, regardless of their JobStatus, doing this simply doesn't work.
condor_history -c 'formatTime('ifThenElse(JobStatus == 4, CompletionDate, EnteredCurrentStatus)', "%m") == "04"'
Dong this:
condor_history -c 'formatTime(CompletionDate, "%m") == "04" || formatTime(EnteredCurrentStatus, "%m") == "04"'

should do the job but I think former one is better and more accurate(??). 



_______________________________________________ Condor-users mailing list To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a subject: Unsubscribe You can also unsubscribe by visiting https://lists.cs.wisc.edu/mailman/listinfo/condor-users The archives can be found at: https://lists.cs.wisc.edu/archive/condor-users/