Skip to content

Commit c0e2133

Browse files
justonedev1knopers8
authored andcommitted
removing kafka event in DCS plugin for EOF received from DCS
1 parent 5ec5d9f commit c0e2133

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

core/integration/dcs/plugin.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,6 @@ func (p *Plugin) CallStack(data interface{}) (stack map[string]interface{}) {
10411041
})
10421042
}
10431043
return
1044-
10451044
}
10461045
stack["StartOfRun"] = func() (out string) { // must formally return string even when we return nothing
10471046
var err error
@@ -1416,17 +1415,6 @@ func (p *Plugin) CallStack(data interface{}) (stack map[string]interface{}) {
14161415
WithField("run", runNumber64).
14171416
Debug(logMsg)
14181417

1419-
the.EventWriterWithTopic(TOPIC).WriteEvent(&pb.Ev_IntegratedServiceEvent{
1420-
Name: call.GetName(),
1421-
OperationName: call.Func,
1422-
OperationStatus: pb.OpStatus_ONGOING,
1423-
OperationStep: "perform DCS call: StartOfRun",
1424-
OperationStepStatus: pb.OpStatus_DONE_ERROR,
1425-
EnvironmentId: envId,
1426-
Payload: string(payloadJson[:]),
1427-
Error: logMsg,
1428-
})
1429-
14301418
break // no more data
14311419
}
14321420
if errors.Is(err, context.DeadlineExceeded) {
@@ -1663,7 +1651,6 @@ func (p *Plugin) CallStack(data interface{}) (stack map[string]interface{}) {
16631651
dcsopOk = false
16641652
dcsFailedEcsDetectors = append(dcsFailedEcsDetectors, dcsToEcsDetector(v))
16651653
}
1666-
16671654
}
16681655
if dcsopOk {
16691656
p.pendingEORs[envId] = runNumber64

0 commit comments

Comments
 (0)