Skip to content

Commit

Permalink
tfscheduler: add run number to infologger
Browse files Browse the repository at this point in the history
  • Loading branch information
ironMann committed May 5, 2022
1 parent 8c5e921 commit ed064be
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/TfScheduler/TfSchedulerStfInfo.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,11 @@ void TfSchedulerStfInfo::addStfInfo(const StfSenderStfInfo &pStfInfo, SchedulerS
mRunNumber = lRunNumber;
IDDLOG("NEW RUN NUMBER: {} {}", pStfInfo.partition().partition_id(), lRunNumber);
DataDistMonitor::enable_datadist(mRunNumber, pStfInfo.partition().partition_id());

// set log run number
DataDistLogger::sRunNumber = mRunNumber;
DataDistLogger::sRunNumberStr = std::to_string(mRunNumber);
impl::DataDistLoggerCtx::InitInfoLogger();
} else if (mRunNumber > lRunNumber) {
EDDLOG_GRL(500, "New RunNumber is smaller than the previous. run_number={} prev_run_number={}", lRunNumber, mRunNumber);
pResponse.set_status((!mRunning) ? SchedulerStfInfoResponse::DROP_NOT_RUNNING :
Expand Down Expand Up @@ -728,6 +733,11 @@ void TfSchedulerStfInfo::TopoSchedulingThread()
mRunNumber = lRunNum;
IDDLOG("NEW RUN NUMBER: {} {}", lTopoStfInfo->mStfInfo.partition().partition_id(), mRunNumber);
DataDistMonitor::enable_datadist(mRunNumber, lTopoStfInfo->mStfInfo.partition().partition_id());

// set log run number
DataDistLogger::sRunNumber = mRunNumber;
DataDistLogger::sRunNumberStr = std::to_string(mRunNumber);
impl::DataDistLoggerCtx::InitInfoLogger();
}

TfBuildingInformation lRequest;
Expand Down

0 comments on commit ed064be

Please sign in to comment.