Skip to content

Commit

Permalink
Use start time of cmsRun in CondorStatusService
Browse files Browse the repository at this point in the history
Use the information in the timing service to get the start
time of cmsRun and use that time to calculate job duration.
  • Loading branch information
Dr15Jones committed Mar 27, 2023
1 parent 9a02541 commit 7339963
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions FWCore/Services/plugins/CondorStatusUpdater.cc
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,6 @@ void CondorStatusService::beginPost() {
ss_max_lumis << maxLumis;
updateChirp("MaxLumis", ss_max_lumis.str());
}

m_beginJob = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
update();
}

Expand All @@ -234,6 +232,11 @@ void CondorStatusService::firstUpdate() {
updateChirp("MaxLumis", "-1");
updateChirp("Done", "false");
updateChirpQuoted("Guid", edm::processGUID().toString());
m_beginJob = TimingServiceBase::jobStartTime();
if (m_beginJob == 0.) {
m_beginJob = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
}

}

void CondorStatusService::secondUpdate() {
Expand Down

0 comments on commit 7339963

Please sign in to comment.