Skip to content

Commit

Permalink
[core] print an error to the operators if EOX == 0 or EOX > EOR
Browse files Browse the repository at this point in the history
  • Loading branch information
knopers8 committed Nov 24, 2023
1 parent 0719872 commit be1d263
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions core/integration/ccdb/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,21 @@ func (p *Plugin) CallStack(data interface{}) (stack map[string]interface{}) {
Debug("probably went to ERROR while not in RUNNING, doing nothing")
return
}

trgEndTimeMsUint, _ := strconv.ParseUint(grp.trgEndTimeMs, 10, 32)
o2EndTimeMsUint, _ := strconv.ParseUint(grp.runEndTimeMs, 10, 32)
if trgEndTimeMsUint == 0 {
log.WithField("call", "RunStop").
WithField("partition", envId).
WithField("level", infologger.IL_Ops).
Error("End of trigger time will be missing in the CCDB GRPECS. Please create a log entry in BK and tag PDP")
}
if trgEndTimeMsUint > o2EndTimeMsUint {
log.WithField("call", "RunStop").
WithField("partition", envId).
WithField("level", infologger.IL_Ops).
Errorf("End of trigger time will be later than end of run time (%d > %d) in the CCDB GRPECS. Please create a log entry in BK and tag PDP", trgEndTimeMsUint, o2EndTimeMsUint)
}
_, runExists := p.existingRuns[grp.runNumber]
if runExists {
delete(p.existingRuns, grp.runNumber)
Expand Down

0 comments on commit be1d263

Please sign in to comment.