Skip to content

Commit 9ecaada

Browse files
authored
Add the env var to disable the publication from Tasks to BK (#2622)
1 parent f4928f7 commit 9ecaada

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Framework/src/TaskRunner.cxx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -434,12 +434,14 @@ void TaskRunner::startCycle()
434434

435435
void TaskRunner::registerToBookkeeping()
436436
{
437-
// register ourselves to the BK at the first cycle
438-
ILOG(Debug, Devel) << "Registering taskRunner to BookKeeping" << ENDM;
439-
try {
440-
Bookkeeping::getInstance().registerProcess(mActivity.mId, mTaskConfig.taskName, mTaskConfig.detectorName, bkp::DplProcessType::QC_TASK, "");
441-
} catch (std::runtime_error& error) {
442-
ILOG(Warning, Devel) << "Failed registration to the BookKeeping: " << error.what() << ENDM;
437+
if (!gSystem->Getenv("O2_QC_DONT_REGISTER_IN_BK")) { // Set this variable to disable the registration
438+
// register ourselves to the BK at the first cycle
439+
ILOG(Debug, Devel) << "Registering taskRunner to BookKeeping" << ENDM;
440+
try {
441+
Bookkeeping::getInstance().registerProcess(mActivity.mId, mTaskConfig.taskName, mTaskConfig.detectorName, bkp::DplProcessType::QC_TASK, "");
442+
} catch (std::runtime_error& error) {
443+
ILOG(Warning, Devel) << "Failed registration to the BookKeeping: " << error.what() << ENDM;
444+
}
443445
}
444446
}
445447

0 commit comments

Comments
 (0)