JobCurrentStartDate & EnteredCurrentStatus differ.

When starting a job they then and when differ by 1s or so.. so using JobCurrentStartDate in the end does not match the EnteredCurrentStatus from the start, CC fails to stop the right job.
This commit is contained in:
Joachim Meyer 2022-12-20 17:15:01 +01:00
parent e38e6fa5b9
commit 019bfa5ee9

View File

@ -428,7 +428,7 @@ void CCSyncPlugin::endTransaction() {
{"cluster", clusterName}, {"cluster", clusterName},
{"numNodes", std::stoi(job["CurrentHosts"])}, {"numNodes", std::stoi(job["CurrentHosts"])},
{"numHwthreads", std::stoi(job["CpusProvisioned"])}, {"numHwthreads", std::stoi(job["CpusProvisioned"])},
{"startTime", std::stoull(job["EnteredCurrentStatus"])}, {"startTime", std::stoull(job["JobCurrentStartDate"])},
{"project", removeQuotes(job["AcctGroup"])}, {"project", removeQuotes(job["AcctGroup"])},
{"partition", "main"}, {"partition", "main"},
{"exclusive", 0}, {"exclusive", 0},