Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Ensure the CTP readout FLP is included in BK call if enabled #521

Merged
merged 2 commits into from
Mar 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions core/integration/bookkeeping/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,24 @@ func (p *Plugin) CallStack(data interface{}) (stack map[string]interface{}) {
rnString := strconv.FormatUint(uint64(runNumber), 10)

flps := env.GetFLPs()

// The enabled status of CTP Readout and its FLP is governed by the variable ctp_readout_enabled, so it requires
// special treatment to be included in the list of FLPs
ctpReadoutEnabled, err := strconv.ParseBool(env.GetKV("", "ctp_readout_enabled"))
if err != nil {
log.WithError(err).
WithField("run", runNumber64).
WithField("partition", envId).
WithField("call", "StartOfRun").
Warning("cannot parse CTP readout enabled")
teo marked this conversation as resolved.
Show resolved Hide resolved
}
if ctpReadoutEnabled {
ctpReadoutFlp := env.GetKV("", "ctp_readout_host")
if len(ctpReadoutFlp) > 0 {
flps = append(flps, ctpReadoutFlp)
}
}

epns, err := strconv.ParseInt(env.GetKV("", "odc_n_epns"), 10, 0)
if err != nil {
log.WithError(err).
Expand Down
Loading