51 using namespace edm::service;
64 m_maxVSize(iConfig.getUntrackedParameter<double>(
"maxVSize",0)*1000.),
65 m_maxRSS(iConfig.getUntrackedParameter<double>(
"maxRSS",0)*1000.),
66 m_maxTime(iConfig.getUntrackedParameter<double>(
"maxTime",0)*60.*60.)
113 desc.
addUntracked<
double>(
"maxVSize", 0.)->
setComment(
"Maximum allowed VSize for the job in GB. Ignored if set to 0.");
114 desc.
addUntracked<
double>(
"maxRSS", 0.)->
setComment(
"Maximum allowd RSS for the job in GB. Ignored if set to 0.");
115 desc.
addUntracked<
double>(
"maxTime", 0.)->
setComment(
"Maximum allowd wallclock time for the job in hours. Ignored if set to 0.");
116 descriptions.
add(
"ResourceEnforcer", desc);
void setComment(std::string const &value)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void watchPostProcessEvent(PostProcessEvent::slot_type const &iSlot)
void postEventProcessing(Event const &e, EventSetup const &)
#define DEFINE_FWK_SERVICE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
ResourceEnforcer(edm::ParameterSet const &iConfig, ActivityRegistry &iAR)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ProcInfoFetcher m_fetcher