wmglobalqueue 2.4.3__py3-none-any.whl → 2.4.4rc3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of wmglobalqueue might be problematic. Click here for more details.
- Utils/ProcessStats.py +5 -3
- Utils/wmcoreDTools.py +707 -0
- WMCore/Configuration.py +8 -0
- WMCore/Lexicon.py +1 -1
- WMCore/Services/AlertManager/AlertManagerAPI.py +1 -1
- WMCore/__init__.py +1 -1
- {wmglobalqueue-2.4.3.dist-info → wmglobalqueue-2.4.4rc3.dist-info}/METADATA +1 -1
- {wmglobalqueue-2.4.3.dist-info → wmglobalqueue-2.4.4rc3.dist-info}/RECORD +99 -98
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/bin/wmc-dist-patch +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/bin/wmc-dist-unpatch +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/bin/wmc-httpd +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/.couchapprc +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/README.md +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/_attachments/index.html +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/_attachments/js/ElementInfoByWorkflow.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/_attachments/js/StuckElementInfo.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/_attachments/js/WorkloadInfoTable.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/_attachments/js/dataTable.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/_attachments/js/namespace.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/_attachments/style/main.css +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/couchapp.json +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/filters/childQueueFilter.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/filters/filterDeletedDocs.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/filters/queueFilter.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/language +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/lib/mustache.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/lib/validate.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/lib/workqueue_utils.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/lists/elementsDetail.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/lists/filter.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/lists/stuckElements.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/lists/workRestrictions.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/lists/workflowSummary.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/rewrites.json +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/shows/redirect.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/shows/status.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/templates/ElementSummaryByWorkflow.html +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/templates/StuckElementSummary.html +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/templates/TaskStatus.html +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/templates/WorkflowSummary.html +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/templates/partials/workqueue-common-lib.html +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/templates/partials/yui-lib-remote.html +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/templates/partials/yui-lib.html +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/updates/in-place.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/validate_doc_update.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/vendor/couchapp/_attachments/jquery.couch.app.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/vendor/couchapp/_attachments/jquery.pathbinder.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/activeData/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/activeData/reduce.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/activeParentData/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/activeParentData/reduce.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/activePileupData/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/activePileupData/reduce.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/analyticsData/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/analyticsData/reduce.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/availableByPriority/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/conflicts/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/elements/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/elementsByData/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/elementsByParent/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/elementsByParentData/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/elementsByPileupData/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/elementsByStatus/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/elementsBySubscription/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/elementsByWorkflow/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/elementsByWorkflow/reduce.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/elementsDetailByWorkflowAndStatus/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobInjectStatusByRequest/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobInjectStatusByRequest/reduce.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobStatusByRequest/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobStatusByRequest/reduce.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobsByChildQueueAndPriority/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobsByChildQueueAndPriority/reduce.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobsByChildQueueAndStatus/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobsByChildQueueAndStatus/reduce.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobsByRequest/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobsByRequest/reduce.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobsByStatus/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobsByStatus/reduce.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobsByStatusAndPriority/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobsByStatusAndPriority/reduce.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/openRequests/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/recent-items/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/siteWhitelistByRequest/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/siteWhitelistByRequest/reduce.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/specsByWorkflow/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/stuckElements/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/wmbsInjectStatusByRequest/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/wmbsInjectStatusByRequest/reduce.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/wmbsUrl/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/wmbsUrl/reduce.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/wmbsUrlByRequest/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/wmbsUrlByRequest/reduce.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/workflowSummary/map.js +0 -0
- {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/workflowSummary/reduce.js +0 -0
- {wmglobalqueue-2.4.3.dist-info → wmglobalqueue-2.4.4rc3.dist-info}/WHEEL +0 -0
- {wmglobalqueue-2.4.3.dist-info → wmglobalqueue-2.4.4rc3.dist-info}/licenses/LICENSE +0 -0
- {wmglobalqueue-2.4.3.dist-info → wmglobalqueue-2.4.4rc3.dist-info}/licenses/NOTICE +0 -0
- {wmglobalqueue-2.4.3.dist-info → wmglobalqueue-2.4.4rc3.dist-info}/top_level.txt +0 -0
Utils/ProcessStats.py
CHANGED
|
@@ -104,6 +104,7 @@ def processThreadsInfo(pid):
|
|
|
104
104
|
"pid": process.pid,
|
|
105
105
|
"status": process.status(),
|
|
106
106
|
"ppid": process.ppid(), # Parent Process ID
|
|
107
|
+
"is_running":process.is_running(), # NOTE: Zombie processes could also be reported as running
|
|
107
108
|
"cmdline": process.cmdline(), # Full command-line arguments
|
|
108
109
|
"cpu_usage_percent": process.cpu_percent(interval=1.0), # CPU usage in percentage
|
|
109
110
|
"memory_usage_percent": process.memory_percent(), # RAM usage in percentage
|
|
@@ -127,7 +128,8 @@ def processThreadsInfo(pid):
|
|
|
127
128
|
"memory_usage_bytes": None,
|
|
128
129
|
"num_open_files": None,
|
|
129
130
|
"num_connections": None,
|
|
130
|
-
"
|
|
131
|
+
"is_running":process.is_running(), # NOTE: Zombie processes could also be reported as running
|
|
132
|
+
"status": "unknown",
|
|
131
133
|
"name": "thread"
|
|
132
134
|
}
|
|
133
135
|
if str(pid) == str(thread_id):
|
|
@@ -136,9 +138,9 @@ def processThreadsInfo(pid):
|
|
|
136
138
|
# Try getting thread status
|
|
137
139
|
try:
|
|
138
140
|
thread_status = psutil.Process(thread_id).status()
|
|
139
|
-
thread_info["
|
|
141
|
+
thread_info["status"] = thread_status
|
|
140
142
|
except psutil.NoSuchProcess:
|
|
141
|
-
thread_info["
|
|
143
|
+
thread_info["status"] = psutil.STATUS_ZOMBIE
|
|
142
144
|
|
|
143
145
|
# Try getting per-thread CPU usage
|
|
144
146
|
try:
|