mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
SDK: wait for devices to be in running
This commit is contained in:
@@ -170,7 +170,7 @@ auto DDSSession::SubmitAgents(Quantity agents) -> void
|
||||
fImpl->fSession.sendRequest<dds::tools_api::SSubmitRequest>(submitRequest);
|
||||
blocker.Wait();
|
||||
|
||||
// Not perfect, but best we can do
|
||||
// perfect
|
||||
WaitForIdleAgents(agents);
|
||||
}
|
||||
|
||||
|
@@ -80,6 +80,7 @@ class DDSSession
|
||||
};
|
||||
auto RequestCommanderInfo() -> CommanderInfo;
|
||||
auto WaitForIdleAgents(Quantity) -> void;
|
||||
auto WaitForOnlyIdleAgents() -> void;
|
||||
auto WaitForExecutingAgents(Quantity) -> void;
|
||||
auto ActivateTopology(const Path& topoFile) -> void;
|
||||
auto ActivateTopology(DDSTopology) -> void;
|
||||
|
@@ -94,6 +94,8 @@ Topology::Topology(DDSTopology topo, DDSSession session)
|
||||
if (parts[2] != "OK") {
|
||||
LOG(error) << "state-changes-unsubscription failed with return code: " << parts[2];
|
||||
}
|
||||
} else if (parts[1] == "could not queue") {
|
||||
LOG(warn) << "Could not queue " << parts[2] << " transition on " << senderId;
|
||||
}
|
||||
});
|
||||
fDDSSession.StartDDSService();
|
||||
|
Reference in New Issue
Block a user