Skip to content

Commit 02a7b25

Browse files
authored
DPL: make frameworkId independent from actual DDS extra information (#7352)
1 parent b1dfebc commit 02a7b25

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Framework/Core/src/runDataProcessing.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2547,7 +2547,10 @@ int doMain(int argc, char** argv, o2::framework::WorkflowSpec const& workflow,
25472547
// If the id is set, this means this is a device,
25482548
// otherwise this is the driver.
25492549
if (varmap.count("id")) {
2550-
frameworkId = varmap["id"].as<std::string>();
2550+
// The framework id does not want to know anything about DDS template expansion
2551+
// so we simply drop it. Notice that the "id" Property is still the same as the
2552+
// original --id option.
2553+
frameworkId = std::regex_replace(varmap["id"].as<std::string>(), std::regex{"_dds.*"}, "");
25512554
driverInfo.uniqueWorkflowId = fmt::format("{}", getppid());
25522555
driverInfo.defaultDriverClient = "stdout://";
25532556
} else {

0 commit comments

Comments
 (0)