From 019bfa5ee9634db3522a8b83b403ae524cb90b8e Mon Sep 17 00:00:00 2001 From: Joachim Meyer Date: Tue, 20 Dec 2022 17:15:01 +0100 Subject: [PATCH] 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. --- src/htcondor_cc_sync_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/htcondor_cc_sync_plugin.cpp b/src/htcondor_cc_sync_plugin.cpp index 9c155dd..0cdf24a 100644 --- a/src/htcondor_cc_sync_plugin.cpp +++ b/src/htcondor_cc_sync_plugin.cpp @@ -428,7 +428,7 @@ void CCSyncPlugin::endTransaction() { {"cluster", clusterName}, {"numNodes", std::stoi(job["CurrentHosts"])}, {"numHwthreads", std::stoi(job["CpusProvisioned"])}, - {"startTime", std::stoull(job["EnteredCurrentStatus"])}, + {"startTime", std::stoull(job["JobCurrentStartDate"])}, {"project", removeQuotes(job["AcctGroup"])}, {"partition", "main"}, {"exclusive", 0},