| << Back to previous view |
[QB-4235] statistics on build queue and resource wait times
|
|
| Status: | Open |
| Project: | QuickBuild |
| Component/s: | None |
| Affects Version/s: | 15.0.37 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Phong Trinh | Assigned To: | Steve Luo |
| Resolution: | Unresolved | Votes: | 0 |
| Remaining Estimate: | Unknown | Time Spent: | Unknown |
| Original Estimate: | Unknown | ||
| Environment: | Linux | ||
| Description |
|
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 |
| Comments |
| Comment by 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. |
| Comment by Robin Shen [ 28/Jan/26 09:46 AM ] |
| There is a build wait duration. We will add stats for this metric in QB16. |
| Comment by 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. |
| Comment by Phong Trinh [ 29/Jan/26 12:18 AM ] |
| Thank you, Steve! |
| Comment by Phong Trinh [ 29/Jan/26 03:18 AM ] |
| I am able to get the wait duration. Thanks! |