func reportException(client client.Queue, task *TaskRun, reason runtime.ExceptionReason, log *logrus.Entry) *updateError { payload := queue.TaskExceptionRequest{Reason: string(reason)} _, err := client.ReportException(task.TaskID, strconv.Itoa(task.RunID), &payload) if err != nil { log.WithField("error", err).Warn("Not able to report exception for task") return &updateError{err: err.Error()} } return nil }