We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fbd3fb commit 4b8edbaCopy full SHA for 4b8edba
1 file changed
executor/executable/controllabletask.go
@@ -524,6 +524,17 @@ func (t *ControllableTask) Launch() error {
524
WithField("detector", t.knownDetector).
525
Debug("nil DeviceEvent received (NULL_DEVICE_EVENT) - closing stream")
526
break
527
+ } else {
528
+ if deviceEvent.GetType() == pb.DeviceEventType_END_OF_STREAM {
529
+ taskId := deo.TaskId.Value
530
+
531
+ log.WithField("partition", t.knownEnvironmentId.String()).
532
+ WithField("detector", t.knownDetector).
533
+ WithField("taskId", taskId).
534
+ WithField("taskName", t.ti.Name).
535
+ WithField("taskPid", t.knownPid).
536
+ Debug("END_OF_STREAM DeviceEvent received - notifying environment")
537
+ }
538
}
539
deviceEvent.SetLabels(map[string]string{"detector": t.knownDetector, "environmentId": t.knownEnvironmentId.String()})
540
0 commit comments