Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions FWCore/Services/plugins/CondorStatusUpdater.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,15 @@ const unsigned int CondorStatusService::m_defaultUpdateInterval;
constexpr float CondorStatusService::m_defaultEmaInterval;

CondorStatusService::CondorStatusService(ParameterSet const &pset, edm::ActivityRegistry &ar)
: m_debug(false), m_lastUpdate(0), m_events(0), m_lumis(0), m_runs(0), m_files(0) {
: m_debug(pset.getUntrackedParameter("debug", false)),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strictly speaking the default value should not be needed because of having default value in the fillDescriptions(), right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right, thanks.

m_lastUpdate(0),
m_events(0),
m_lumis(0),
m_runs(0),
m_files(0) {
m_shouldUpdate.clear();
if (pset.exists("debug")) {
m_debug = true;
if (not pset.getUntrackedParameter("enable", true)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question here about the default value.

return;
}
if (!isChirpSupported()) {
return;
Expand Down Expand Up @@ -419,6 +424,7 @@ void CondorStatusService::fillDescriptions(ConfigurationDescriptions &descriptio
->setComment("Interval, in seconds, to calculate event rate over (using EMA)");
desc.addOptionalUntracked<std::string>("tag")->setComment(
"Identifier tag for this process (a value of 'Foo' results in ClassAd attributes of the form 'ChirpCMSSWFoo*')");
desc.addOptionalUntracked<bool>("enable", true)->setComment("Enable this service");
descriptions.add("CondorStatusService", desc);
}

Expand Down