mirror of
https://gitlab.cs.uni-saarland.de/hpc/cc-condor-sync.git
synced 2024-12-26 05:29:06 +01:00
Add timeout state for 12hr preemted jobs.
This commit is contained in:
parent
e70d377047
commit
8c28b2f287
@ -450,6 +450,15 @@ void CCSyncPlugin::endTransaction() {
|
|||||||
std::uint64_t startTime = std::stoull(job["JobCurrentStartDate"]),
|
std::uint64_t startTime = std::stoull(job["JobCurrentStartDate"]),
|
||||||
stopTime = std::stoull(job["EnteredCurrentStatus"]);
|
stopTime = std::stoull(job["EnteredCurrentStatus"]);
|
||||||
|
|
||||||
|
std::string jobState = jobStateMap.at(state);
|
||||||
|
if (state == HELD && jobHasClassAd(job, "HoldReasonCode") &&
|
||||||
|
std::stoul(job["HoldReasonCode"]) == 3 &&
|
||||||
|
jobHasClassAd(job, "HoldReasonSubCode") &&
|
||||||
|
(std::stoul(job["HoldReasonSubCode"]) == 12 ||
|
||||||
|
std::stoul(job["HoldReasonSubCode"]) == 24)) {
|
||||||
|
jobState = "timeout";
|
||||||
|
}
|
||||||
|
|
||||||
json j = {{"jobId", globalJobIdToInt(jobId)},
|
json j = {{"jobId", globalJobIdToInt(jobId)},
|
||||||
{"cluster", clusterName},
|
{"cluster", clusterName},
|
||||||
{"jobState", jobStateMap.at(state)},
|
{"jobState", jobStateMap.at(state)},
|
||||||
|
Loading…
Reference in New Issue
Block a user