Skip to content

Commit

Permalink
add metadata path
Browse files Browse the repository at this point in the history
  • Loading branch information
lucymcnatt committed Feb 12, 2025
1 parent 648f65a commit df61523
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import cromwell.backend.BackendJobDescriptorKey
import cromwell.backend.google.batch.runnable.GcpBatchMetadataKeys
import cromwell.backend.io.JobPaths
import cromwell.core.path.Path
import cromwell.services.metadata.CallMetadataKeys

object GcpBatchJobPaths {

Expand Down Expand Up @@ -40,10 +41,13 @@ case class GcpBatchJobPaths(override val workflowPaths: GcpBatchWorkflowPaths,
val jesMonitoringLogFilename: String = s"${GcpBatchJobPaths.BatchMonitoringKey}.log"
lazy val jesMonitoringLogPath: Path = callExecutionRoot.resolve(jesMonitoringLogFilename)

override lazy val customMetadataPaths =
override lazy val customMetadataPaths = Map(
CallMetadataKeys.BackendLogsPrefix + ":log" -> batchLogPath
) ++ (
workflowPaths.monitoringScriptPath map { p =>
Map(GcpBatchMetadataKeys.MonitoringScript -> p, GcpBatchMetadataKeys.MonitoringLog -> jesMonitoringLogPath)
} getOrElse Map.empty
)

override def standardOutputAndErrorPaths: Map[String, Path] =
super.standardOutputAndErrorPaths map { case (k, v) =>
Expand Down

0 comments on commit df61523

Please sign in to comment.