Skip to content

Commit

Permalink
removing kafka event in DCS plugin for EOF received from DCS
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Tichák committed Sep 20, 2024
1 parent 5ec5d9f commit c64da29
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions core/integration/dcs/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,6 @@ func (p *Plugin) CallStack(data interface{}) (stack map[string]interface{}) {
})
}
return

}
stack["StartOfRun"] = func() (out string) { // must formally return string even when we return nothing
var err error
Expand Down Expand Up @@ -1416,17 +1415,6 @@ func (p *Plugin) CallStack(data interface{}) (stack map[string]interface{}) {
WithField("run", runNumber64).
Debug(logMsg)

the.EventWriterWithTopic(TOPIC).WriteEvent(&pb.Ev_IntegratedServiceEvent{
Name: call.GetName(),
OperationName: call.Func,
OperationStatus: pb.OpStatus_ONGOING,
OperationStep: "perform DCS call: StartOfRun",
OperationStepStatus: pb.OpStatus_DONE_ERROR,
EnvironmentId: envId,
Payload: string(payloadJson[:]),
Error: logMsg,
})

break // no more data
}
if errors.Is(err, context.DeadlineExceeded) {
Expand Down Expand Up @@ -1663,7 +1651,6 @@ func (p *Plugin) CallStack(data interface{}) (stack map[string]interface{}) {
dcsopOk = false
dcsFailedEcsDetectors = append(dcsFailedEcsDetectors, dcsToEcsDetector(v))
}

}
if dcsopOk {
p.pendingEORs[envId] = runNumber64
Expand Down

0 comments on commit c64da29

Please sign in to comment.