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

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



On 04/11/2011 04:03 PM, Erik Erlandson wrote:

    condor_history -c 'formatTime('ifThenElse(JobStatus == 4, CompletionDate, EnteredCurrentStatus)',"%m") =="04"'


The above probably failed to parse, because it has an extra pair of
quotes. This will work:

condor_history -c 'formatTime(ifThenElse(JobStatus =?= 4,
CompletionDate, EnteredCurrentStatus), "%Y%m") >= "201104"'

-Erik

A little exploration...

In a history file with 18907 jobs (rotated, darn!), the largest gap was 4 seconds.

$ condor_history -format "%d\n" 'CompletionDate - EnteredCurrentStatus' -const 'CompletionDate != 0 && CompletionDate != EnteredCurrentStatus' | sort | uniq -c
    238 1
     82 2
     63 3
     37 4

Best,


matt