History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-4235
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Steve Luo
Reporter: Phong Trinh
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

statistics on build queue and resource wait times

Created: 23/Jan/26 02:03 AM   Updated: 29/Jan/26 03:18 AM
Component/s: None
Affects Version/s: 15.0.37
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Linux


 Description  « Hide
 I plan to collect statistics on build queue and resource wait times across the build infrastructure to evaluate whether we need to scale up our build agents. Is there a way to get wait time of each build or each configuration? Any suggestion is appreciated.

 ptrinh

 All   Comments   Work Log   Change History      Sort Order:
Phong Trinh [29/Jan/26 03:18 AM]
I am able to get the wait duration. Thanks!

Phong Trinh [29/Jan/26 12:18 AM]
Thank you, Steve!

Phong Trinh [29/Jan/26 12:09 AM]
 Thank you for promptly responding, Robin!
 The metric will be very helpful, and I look forward to seeing it.
 I am getting the startDate, endDate, and requestDate as follow:
   reqObj = build.getRequest()
   requestDate = reqObj?.getRequestDate()
   startDate = build.getBeginDate()
   endDate = build.getEndDate()
 
  However, requestDate is purged after the build is completed. How do I obtain the wait duration (as you mentioned) of a completed build? Please advise.

Robin Shen [28/Jan/26 09:46 AM]
There is a build wait duration. We will add stats for this metric in QB16.

Phong Trinh [27/Jan/26 12:57 AM]
 I believe I can calculate the wait time as follow:
  waitTime = startDate - requestDate
  wait time = startDate - scheduleDate

 Looks like requestDate/scheduleDate is purged after build is completed.