Skip to content

Commit 8ecdc76

Browse files
authored
make sure that service devices are always spawned by the last workflow
2 parents 72c4ba7 + f1a7767 commit 8ecdc76

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Framework/Core/src/runDataProcessing.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,10 +1630,12 @@ int runStateMachine(DataProcessorSpecs const& workflow,
16301630
// which contains how to run the current workflow
16311631
dataProcessorInfos = previousDataProcessorInfos;
16321632
for (auto const& device : runningWorkflow.devices) {
1633-
auto exists = std::find_if(dataProcessorInfos.begin(),
1634-
dataProcessorInfos.end(),
1633+
auto exists = std::ranges::find_if(dataProcessorInfos,
16351634
[id = device.id](DataProcessorInfo const& info) -> bool { return info.name == id; });
16361635
if (exists != dataProcessorInfos.end()) {
1636+
if (exists->name.starts_with("internal-")) {
1637+
exists->executable = workflowInfo.executable;
1638+
}
16371639
continue;
16381640
}
16391641
std::vector<std::string> channels;

0 commit comments

Comments
 (0)