Hello,

I currently have a plugin which records the disposition (SUCCESS, FAILURE, 
CANCELED) and time-spent executing each job and sends a stat metric to a 
statsd server (https://github.com/joemiller/jenkins-statsd-plugin) and now 
I would like to add recording of how long a job sat in the queue before an 
executor became available and started executing the job.

I'm looking for the proper place in jenkins to get this information but 
have not found it yet. I initially tried using these two vars from the 
hudson.model.Run object:
        long queueTime = r.getTimeInMillis() - r.getStartTimeInMillis();

But the queueTime metric is always very low, such as 0-5 ms although a job 
has sat in the queue for 30000ms.

Any advice/pointers on where I could get the "time waiting in queue" for a 
job?

thanks,
joe

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to