Skip to content

Commit 866b9a2

Browse files
authored
DPL: allow pipelining of the CCDB fetcher (#15192)
1 parent 4bfc0a5 commit 866b9a2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Framework/Core/src/WorkflowCustomizationHelpers.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ namespace o2::framework
4242
std::vector<ConfigParamSpec> WorkflowCustomizationHelpers::requiredWorkflowOptions()
4343
{
4444
return {{{"readers", VariantType::Int64, 1ll, {"number of parallel readers to use"}},
45+
{"ccdb-fetchers", VariantType::Int64, 1ll, {"number of parallel ccdb-fetchers to use"}},
4546
{"spawners", VariantType::Int64, 1ll, {"number of parallel spawners to use"}},
4647
{"pipeline", VariantType::String, "", {"override default pipeline size"}},
4748
{"clone", VariantType::String, "", {"clone processors from a template"}},

Framework/Core/src/WorkflowHelpers.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ void WorkflowHelpers::injectServiceDevices(WorkflowSpec& workflow, ConfigContext
505505
ccdbBackend.outputs.push_back(OutputSpec{"CTP", "OrbitReset", 0});
506506
// Load the CCDB backend from the plugin
507507
ccdbBackend.algorithm = PluginManager::loadAlgorithmFromPlugin("O2FrameworkCCDBSupport", "CCDBFetcherPlugin", ctx);
508-
extraSpecs.push_back(ccdbBackend);
508+
extraSpecs.push_back(timePipeline(ccdbBackend, ctx.options().get<int64_t>("ccdb-fetchers")));
509509
} else if (requiresDISTSUBTIMEFRAME && enumCandidate != -1) {
510510
// add DSTF/ccdb source to the enumeration-driven source explicitly if it is required in the workflow
511511
DataSpecUtils::updateOutputList(workflow[enumCandidate].outputs, OutputSpec{{"ccdb-diststf"}, dstf, Lifetime::Timeframe});

0 commit comments

Comments
 (0)