Don't monitor jobs with more than 25 sub jobs.

This commit is contained in:
Joachim Meyer
2025-08-05 15:39:02 +02:00
parent 1e0a9e8e53
commit 5a9335d16d

View File

@@ -429,6 +429,15 @@ void CCSyncPlugin::endTransaction() {
jobId.first, jobId.second);
continue;
}
if (auto totalSubmitProcs = job.find("TotalSubmitProcs");
totalSubmitProcs != job.end() &&
std::stoi(totalSubmitProcs->second) > 25) {
dprintf(D_VERBOSE,
"Job %d.%d is an array job with more than 25 sub-jobs, not "
"monitoring it\n",
jobId.first, jobId.second);
continue;
}
if (state == RUNNING) {
auto jobBatchNameIt = job.find("JobBatchName");