Skip to content

Commit

Permalink
DPL: propagate DataProcessor metadata to DeviceSpec
Browse files Browse the repository at this point in the history
...so it can be recognized by O2ControlHelpers
  • Loading branch information
knopers8 authored and ktf committed Jul 7, 2023
1 parent f7a6a85 commit 37a9f48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Framework/Core/include/Framework/DeviceSpec.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ struct DeviceSpec {
ComputingResource resource;
unsigned short resourceMonitoringInterval;
std::vector<DataProcessorLabel> labels;
std::vector<DataProcessorMetadata> metadata;
};

} // namespace o2::framework
Expand Down
6 changes: 4 additions & 2 deletions Framework/Core/src/DeviceSpecHelpers.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,8 @@ void DeviceSpecHelpers::processOutEdgeActions(ConfigContext const& configContext
.inputTimesliceId = edge.producerTimeIndex,
.maxInputTimeslices = processor.maxInputTimeslices,
.resource = {acceptedOffer},
.labels = processor.labels});
.labels = processor.labels,
.metadata = processor.metadata});
/// If any of the inputs or outputs are "Lifetime::OutOfBand"
/// create the associated channels.
//
Expand Down Expand Up @@ -828,7 +829,8 @@ void DeviceSpecHelpers::processInEdgeActions(std::vector<DeviceSpec>& devices,
.inputTimesliceId = edge.timeIndex,
.maxInputTimeslices = processor.maxInputTimeslices,
.resource = {acceptedOffer},
.labels = processor.labels};
.labels = processor.labels,
.metadata = processor.metadata};

if (processor.maxInputTimeslices != 1) {
device.id += "_t" + std::to_string(edge.timeIndex);
Expand Down

0 comments on commit 37a9f48

Please sign in to comment.