From fc1b0c5bbfa794c233a067429daea4753a2d6afb Mon Sep 17 00:00:00 2001 From: Janet Gainer-Dewar Date: Mon, 18 Sep 2023 15:10:24 -0400 Subject: [PATCH] Print TES error messages to job logger --- .../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)) }