@@ -306,11 +306,6 @@ void TaskRunner::start(ServiceRegistryRef services)
306306 mNoMoreCycles = false ;
307307 mCycleNumber = 0 ;
308308
309- if (gSystem ->Getenv (" O2_QC_REGISTER_IN_BK_AT_START" )) {
310- // until we are sure it works, we have to turn it on
311- registerToBookkeeping ();
312- }
313-
314309 try {
315310 startOfActivity ();
316311 startCycle ();
@@ -442,13 +437,6 @@ void TaskRunner::registerToBookkeeping()
442437 ILOG (Debug, Devel) << " Registering taskRunner to BookKeeping" << ENDM;
443438 try {
444439 Bookkeeping::getInstance ().registerProcess (mActivity .mId , mTaskConfig .taskName , mTaskConfig .detectorName , bkp::DplProcessType::QC_TASK, " " );
445- if (gSystem ->Getenv (" O2_QC_REGISTER_IN_BK_X_TIMES" )) {
446- ILOG (Debug, Devel) << " O2_QC_REGISTER_IN_BK_X_TIMES set to " << gSystem ->Getenv (" O2_QC_REGISTER_IN_BK_X_TIMES" ) << ENDM;
447- int iterations = std::stoi (gSystem ->Getenv (" O2_QC_REGISTER_IN_BK_X_TIMES" ));
448- for (int i = 1 ; i < iterations; i++) { // start at 1 because we already did it once
449- Bookkeeping::getInstance ().registerProcess (mActivity .mId , mTaskConfig .taskName , mTaskConfig .detectorName , bkp::DplProcessType::QC_TASK, " " );
450- }
451- }
452440 } catch (std::runtime_error& error) {
453441 ILOG (Warning, Devel) << " Failed registration to the BookKeeping: " << error.what () << ENDM;
454442 }
@@ -465,8 +453,7 @@ void TaskRunner::finishCycle(DataAllocator& outputs)
465453 << " (" << mTimekeeper ->getTimerangeIdRange ().getMin () << " , " << mTimekeeper ->getTimerangeIdRange ().getMax () << " )" << ENDM;
466454 mTask ->endOfCycle ();
467455
468- if (mCycleNumber == 0 && gSystem ->Getenv (" O2_QC_REGISTER_IN_BK" )) {
469- // until we are sure it works, we have to turn it on
456+ if (mCycleNumber == 0 ) { // register at the end of the first cycle
470457 registerToBookkeeping ();
471458 }
472459
0 commit comments