Skip to content

Commit

Permalink
Add jobLogger subworkflow child id and root (parent is the logger tag)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlester-msft authored and THWiseman committed Mar 13, 2024
1 parent 1049c4e commit 264e4e4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class SubWorkflowExecutionActor(key: SubWorkflowKey,

override def preStart(): Unit = {
context.system.eventStream.publish(SubWorkflowStart(self))
super.preStart()
super.preStart()

Check warning on line 68 in engine/src/main/scala/cromwell/engine/workflow/lifecycle/execution/SubWorkflowExecutionActor.scala

View check run for this annotation

Codecov / codecov/patch

engine/src/main/scala/cromwell/engine/workflow/lifecycle/execution/SubWorkflowExecutionActor.scala#L68

Added line #L68 was not covered by tests
}

private var eventList: Seq[ExecutionEvent] = Seq(ExecutionEvent(stateName.toString))
Expand Down Expand Up @@ -312,6 +312,8 @@ class SubWorkflowExecutionActor(key: SubWorkflowKey,
}
}

jobLogger.info(s"Running subworkflow: ${subWorkflowDescriptor.id}, root: ${parentWorkflow.rootWorkflow.id}")

Check warning on line 315 in engine/src/main/scala/cromwell/engine/workflow/lifecycle/execution/SubWorkflowExecutionActor.scala

View check run for this annotation

Codecov / codecov/patch

engine/src/main/scala/cromwell/engine/workflow/lifecycle/execution/SubWorkflowExecutionActor.scala#L315

Added line #L315 was not covered by tests

val workflowRootEvents = buildWorkflowRootMetadataEvents(subWorkflowDescriptor)

serviceRegistryActor ! PutMetadataAction(events ++ inputEvents ++ workflowRootEvents)
Expand Down

0 comments on commit 264e4e4

Please sign in to comment.