Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Framework/Core/src/runDataProcessing.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2933,8 +2933,9 @@ int doMain(int argc, char** argv, o2::framework::WorkflowSpec const& workflow,
workflowHashA += hash_fn(dp.name);
}

for (auto& dp : workflow) {
for (auto& dp : physicalWorkflow) {
rankIndex.insert(std::make_pair(dp.name, workflowHashA));
dp.metadata.emplace(dp.metadata.begin(), std::string{"executable"}, currentWorkflow.executable);
}

std::vector<DataProcessorInfo> dataProcessorInfos;
Expand All @@ -2959,7 +2960,7 @@ int doMain(int argc, char** argv, o2::framework::WorkflowSpec const& workflow,
for (auto& dp : importedWorkflow) {
auto found = std::find_if(physicalWorkflow.begin(), physicalWorkflow.end(),
[&name = dp.name](DataProcessorSpec const& spec) { return spec.name == name; });
if (found == physicalWorkflow.end()) {
if (found == physicalWorkflow.end() || (*dp.metadata.begin()).value != currentWorkflow.executable) {
physicalWorkflow.push_back(dp);
rankIndex.insert(std::make_pair(dp.name, workflowHashB));
}
Expand Down