fetchJobStatuses gets the count of failed jobs 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)
| 143 | // Errors from the underlying API call are suppressed so that callers can continue |
| 144 | // processing even when job data is unavailable (e.g. missing permissions). |
| 145 | func fetchJobStatuses(runID int64, verbose bool) (int, error) { |
| 146 | _, failedJobs, err := fetchJobDetailsWithCounts(runID, verbose) |
| 147 | if err != nil { |
| 148 | // Don't fail the entire operation if we can't get job info |
| 149 | return 0, nil |
| 150 | } |
| 151 | return failedJobs, nil |
| 152 | } |
| 153 | |
| 154 | // ListWorkflowRunsOptions holds the options for listWorkflowRunsWithPagination |
| 155 | type ListWorkflowRunsOptions struct { |
no test coverage detected