Skip to content

Commit

Permalink
Report number of files to process to HTCondor.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbockelm committed Jul 7, 2015
1 parent afb5fd0 commit a23fc31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions FWCore/Services/plugins/CondorStatusUpdater.cc
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ CondorStatusService::beginPost()
lumiCount = static_cast<unsigned int>(std::ceil(static_cast<float>(maxEvents) / static_cast<float>(eventsPerLumi)));
}

std::vector<std::string> fileNames = pset.getUntrackedParameter<std::vector<std::string>>("fileNames", std::vector<std::string>());
std::stringstream ss_max_files; ss_max_files << fileNames.size();
updateChirp("ChripCMSSWMaxFiles", ss_max_files.str());

if (lumiCount > 0)
{
if (maxLumis < 0) {maxLumis = lumiCount;}
Expand Down Expand Up @@ -225,6 +229,7 @@ CondorStatusService::firstUpdate()
// This allows us to overwrite the activities of a previous cmsRun process
// within this HTCondor job.
updateImpl(0);
updateChirp("ChirpCMSSWMaxFiles", "-1");
updateChirp("ChirpCMSSWMaxEvents", "-1");
updateChirp("ChirpCMSSWMaxLumis", "-1");
updateChirp("ChirpCMSSWDone", "false");
Expand Down

0 comments on commit a23fc31

Please sign in to comment.