From 5a9335d16d6d90eb3a94913f0b9535da741a44b6 Mon Sep 17 00:00:00 2001 From: Joachim Meyer Date: Tue, 5 Aug 2025 15:39:02 +0200 Subject: [PATCH] Don't monitor jobs with more than 25 sub jobs. --- src/htcondor_cc_sync_plugin.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/htcondor_cc_sync_plugin.cpp b/src/htcondor_cc_sync_plugin.cpp index bb8a12a..b558718 100644 --- a/src/htcondor_cc_sync_plugin.cpp +++ b/src/htcondor_cc_sync_plugin.cpp @@ -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");