diff --git a/Framework/Core/src/WorkflowCustomizationHelpers.cxx b/Framework/Core/src/WorkflowCustomizationHelpers.cxx index 05abb5dab98cd..2154d0fe26f8d 100644 --- a/Framework/Core/src/WorkflowCustomizationHelpers.cxx +++ b/Framework/Core/src/WorkflowCustomizationHelpers.cxx @@ -42,6 +42,7 @@ namespace o2::framework std::vector WorkflowCustomizationHelpers::requiredWorkflowOptions() { return {{{"readers", VariantType::Int64, 1ll, {"number of parallel readers to use"}}, + {"ccdb-fetchers", VariantType::Int64, 1ll, {"number of parallel ccdb-fetchers to use"}}, {"spawners", VariantType::Int64, 1ll, {"number of parallel spawners to use"}}, {"pipeline", VariantType::String, "", {"override default pipeline size"}}, {"clone", VariantType::String, "", {"clone processors from a template"}}, diff --git a/Framework/Core/src/WorkflowHelpers.cxx b/Framework/Core/src/WorkflowHelpers.cxx index 714706952d26c..abe566e239618 100644 --- a/Framework/Core/src/WorkflowHelpers.cxx +++ b/Framework/Core/src/WorkflowHelpers.cxx @@ -505,7 +505,7 @@ void WorkflowHelpers::injectServiceDevices(WorkflowSpec& workflow, ConfigContext ccdbBackend.outputs.push_back(OutputSpec{"CTP", "OrbitReset", 0}); // Load the CCDB backend from the plugin ccdbBackend.algorithm = PluginManager::loadAlgorithmFromPlugin("O2FrameworkCCDBSupport", "CCDBFetcherPlugin", ctx); - extraSpecs.push_back(ccdbBackend); + extraSpecs.push_back(timePipeline(ccdbBackend, ctx.options().get("ccdb-fetchers"))); } else if (requiresDISTSUBTIMEFRAME && enumCandidate != -1) { // add DSTF/ccdb source to the enumeration-driven source explicitly if it is required in the workflow DataSpecUtils::updateOutputList(workflow[enumCandidate].outputs, OutputSpec{{"ccdb-diststf"}, dstf, Lifetime::Timeframe});