From 5456e40b08774b5c1bfca94f32198dfb656ae84d Mon Sep 17 00:00:00 2001 From: Janet Gainer-Dewar Date: Thu, 21 Sep 2023 10:36:13 -0400 Subject: [PATCH] WX-1225 Print TES error messages to job logger (#7220) --- .../backend/impl/tes/TesAsyncBackendJobExecutionActor.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/supportedBackends/tes/src/main/scala/cromwell/backend/impl/tes/TesAsyncBackendJobExecutionActor.scala b/supportedBackends/tes/src/main/scala/cromwell/backend/impl/tes/TesAsyncBackendJobExecutionActor.scala index 7ff507e63f2..ad8daca6ec7 100644 --- a/supportedBackends/tes/src/main/scala/cromwell/backend/impl/tes/TesAsyncBackendJobExecutionActor.scala +++ b/supportedBackends/tes/src/main/scala/cromwell/backend/impl/tes/TesAsyncBackendJobExecutionActor.scala @@ -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)) }