Skip to content

Commit

Permalink
disable CTP scalers in async
Browse files Browse the repository at this point in the history
  • Loading branch information
Barthelemy committed Oct 23, 2024
1 parent 3cf10ca commit f994efc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Framework/src/UserCodeInterface.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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<o2::ctp::CTPRateFetcher>();
mScalersEnabled = true;
Expand Down

0 comments on commit f994efc

Please sign in to comment.