fetchJobDetails gets detailed job information including durations for a workflow run. Errors from the underlying API call are suppressed so that callers can continue processing even when job data is unavailable (e.g. missing permissions).
(runID int64, verbose bool)
| 131 | // Errors from the underlying API call are suppressed so that callers can continue |
| 132 | // processing even when job data is unavailable (e.g. missing permissions). |
| 133 | func fetchJobDetails(runID int64, verbose bool) ([]JobInfoWithDuration, error) { |
| 134 | jobs, _, err := fetchJobDetailsWithCounts(runID, verbose) |
| 135 | if err != nil { |
| 136 | // Don't fail the entire operation if we can't get job info |
| 137 | return nil, nil |
| 138 | } |
| 139 | return jobs, nil |
| 140 | } |
| 141 | |
| 142 | // fetchJobStatuses gets the count of failed jobs for a workflow run. |
| 143 | // Errors from the underlying API call are suppressed so that callers can continue |
no test coverage detected