|
13 | 13 | #include "DetectorsRaw/RawFileReader.h" |
14 | 14 | #include "CommonUtils/NameConf.h" |
15 | 15 | #include "CommonUtils/ConfigurableParam.h" |
| 16 | +#include "Framework/ChannelSpecHelpers.h" |
16 | 17 | #include "Framework/Logger.h" |
17 | 18 | #include <string> |
18 | 19 | #include <bitset> |
@@ -44,7 +45,7 @@ void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions) |
44 | 45 | options.push_back(ConfigParamSpec{"send-diststf-0xccdb", VariantType::Bool, false, {"send explicit FLP/DISTSUBTIMEFRAME/0xccdb output"}}); |
45 | 46 | options.push_back(ConfigParamSpec{"hbfutils-config", VariantType::String, std::string(o2::base::NameConf::DIGITIZATIONCONFIGFILE), {"configKeyValues ini file for HBFUtils (used if exists)"}}); |
46 | 47 | options.push_back(ConfigParamSpec{"timeframes-shm-limit", VariantType::String, "0", {"Minimum amount of SHM required in order to publish data"}}); |
47 | | - options.push_back(ConfigParamSpec{"metric-feedback-channel-format", VariantType::String, "name=metric-feedback,type=pull,method=connect,address=ipc://@metric-feedback-{},transport=shmem,rateLogging=0", {"format for the metric-feedback channel for TF rate limiting"}}); |
| 48 | + options.push_back(ConfigParamSpec{"metric-feedback-channel-format", VariantType::String, "name=metric-feedback,type=pull,method=connect,address=ipc://{}metric-feedback-{},transport=shmem,rateLogging=0", {"format for the metric-feedback channel for TF rate limiting"}}); |
48 | 49 | // options for error-check suppression |
49 | 50 |
|
50 | 51 | for (int i = 0; i < RawFileReader::NErrorsDefined; i++) { |
@@ -89,7 +90,7 @@ WorkflowSpec defineDataProcessing(ConfigContext const& configcontext) |
89 | 90 | int rateLimitingIPCID = std::stoi(configcontext.options().get<std::string>("timeframes-rate-limit-ipcid")); |
90 | 91 | std::string chanFmt = configcontext.options().get<std::string>("metric-feedback-channel-format"); |
91 | 92 | if (rateLimitingIPCID > -1 && !chanFmt.empty()) { |
92 | | - rinp.metricChannel = fmt::format(chanFmt, rateLimitingIPCID); |
| 93 | + rinp.metricChannel = fmt::format(chanFmt, o2::framework::ChannelSpecHelpers::defaultIPCFolder(), rateLimitingIPCID); |
93 | 94 | } |
94 | 95 | o2::conf::ConfigurableParam::updateFromString(configcontext.options().get<std::string>("configKeyValues")); |
95 | 96 | auto hbfini = configcontext.options().get<std::string>("hbfutils-config"); |
|
0 commit comments