Skip to content

Commit

Permalink
WX-1225 Print TES error messages to job logger (#7220)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgainerdewar committed Sep 21, 2023
1 parent a290e6d commit 5456e40
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ class TesAsyncBackendJobExecutionActor(override val standardParams: StandardAsyn
}

private def handleExecutionError(status: TesRunStatus, returnCode: Option[Int]): Future[ExecutionHandle] = {
val exception = new AggregatedMessageException(s"Task ${jobDescriptor.key.tag} failed for unknown reason: ${status.toString()}", status.sysLogs)
val msg = s"Task ${jobDescriptor.key.tag} failed with ${status.toString}"
jobLogger.info(s"${msg}. Error messages: ${status.sysLogs}")
val exception = new AggregatedMessageException(msg, status.sysLogs)
Future.successful(FailedNonRetryableExecutionHandle(exception, returnCode, None))
}

Expand Down

0 comments on commit 5456e40

Please sign in to comment.