Skip to content

Commit

Permalink
[core] OCTRL-921 Add env ID to DCS SOR and EOR requests
Browse files Browse the repository at this point in the history
  • Loading branch information
knopers8 authored and justonedev1 committed Sep 18, 2024
1 parent 89386ba commit 5ff7ecc
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 145 deletions.
12 changes: 7 additions & 5 deletions core/integration/dcs/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -1238,9 +1238,10 @@ func (p *Plugin) CallStack(data interface{}) (stack map[string]interface{}) {

// Preparing the per-detector request payload
in := dcspb.SorRequest{
RunType: rt,
RunNumber: int32(runNumber64),
Detectors: make([]*dcspb.DetectorOperationRequest, len(dcsDetectors)),
RunType: rt,
RunNumber: int32(runNumber64),
Detectors: make([]*dcspb.DetectorOperationRequest, len(dcsDetectors)),
PartitionId: envId,
}
for i, dcsDet := range dcsDetectors {
ecsDet := dcsToEcsDetector(dcsDet)
Expand Down Expand Up @@ -1770,8 +1771,9 @@ func (p *Plugin) CallStack(data interface{}) (stack map[string]interface{}) {

// Preparing the per-detector request payload
in := dcspb.EorRequest{
RunNumber: int32(runNumber64),
Detectors: make([]*dcspb.DetectorOperationRequest, len(dcsDetectors)),
RunNumber: int32(runNumber64),
Detectors: make([]*dcspb.DetectorOperationRequest, len(dcsDetectors)),
PartitionId: envId,
}
for i, dcsDet := range dcsDetectors {
ecsDet := dcsToEcsDetector(dcsDet)
Expand Down
Loading

0 comments on commit 5ff7ecc

Please sign in to comment.