Skip to content

Commit f11ef3b

Browse files
committed
[occ] Push properties before FairMQ RUN and STOP transitions
1 parent ffcd960 commit f11ef3b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

occ/plugin/OccFMQCommon.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,9 @@ std::tuple<OccLite::nopb::TransitionResponse, ::grpc::Status> doTransition(fair:
147147
try {
148148
auto evt = fair::mq::PluginServices::ToDeviceStateTransition(event);
149149

150-
// Run number must be pushed immediately before RUN transition
151-
if (evt == fair::mq::PluginServices::DeviceStateTransition::Run) {
150+
// RUN and STOP support arguments, pushed as properties right before performing the transition
151+
if (evt == fair::mq::PluginServices::DeviceStateTransition::Run ||
152+
evt == fair::mq::PluginServices::DeviceStateTransition::Stop) {
152153
try {
153154
for (auto const& entry : arguments) {
154155
m_pluginServices->SetProperty(entry.key, entry.value);

0 commit comments

Comments
 (0)