-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Can now disable CondorStatusUpdator #37673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -80,6 +80,7 @@ namespace edm { | |||||
| edm::ParameterSetID m_processParameterSetID; | ||||||
|
|
||||||
| std::uint_least64_t m_lastEventCount = 0; | ||||||
| bool m_disable = false; | ||||||
| }; | ||||||
|
|
||||||
| } // namespace service | ||||||
|
|
@@ -92,10 +93,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)), | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. optionals do not get injected into the PSet
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 (pset.getUntrackedParameter("disable", false)) { | ||||||
| return; | ||||||
| } | ||||||
| if (!isChirpSupported()) { | ||||||
| return; | ||||||
|
|
@@ -419,6 +425,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>("disable", false)->setComment("Disable this service"); | ||||||
|
||||||
| desc.addOptionalUntracked<bool>("disable", false)->setComment("Disable this service"); | |
| desc.addOptionalUntracked<bool>("enable", true)->setComment("Enable this service"); |
? (just thinking if avoiding the double negation of "not disabling" would be more clear)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks to be unnecessary