From f994efcad818556dafb939350ac241143b6e8ab5 Mon Sep 17 00:00:00 2001 From: Barthelemy Date: Wed, 23 Oct 2024 16:58:36 +0200 Subject: [PATCH] disable CTP scalers in async --- Framework/src/UserCodeInterface.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Framework/src/UserCodeInterface.cxx b/Framework/src/UserCodeInterface.cxx index 954d166f5..8d59cbadc 100644 --- a/Framework/src/UserCodeInterface.cxx +++ b/Framework/src/UserCodeInterface.cxx @@ -43,6 +43,13 @@ void UserCodeInterface::setName(const std::string& name) { void UserCodeInterface::enableCtpScalers(size_t runNumber, std::string ccdbUrl) { // TODO bail if we are in async + + auto deploymentMode = framework::DefaultsHelpers::deploymentMode(); + if(deploymentMode == framework::DeploymentMode::Grid) { + ILOG(Info, Ops) << "Async mode detected, CTP scalers cannot be enabled." << ENDM; + return; + } + ILOG(Debug, Devel) << "Enabling CTP scalers" << ENDM; mCtpFetcher = make_shared(); mScalersEnabled = true;