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");