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.

Files changed (99) hide show
  1. Utils/ProcessStats.py +5 -3
  2. Utils/wmcoreDTools.py +707 -0
  3. WMCore/Configuration.py +8 -0
  4. WMCore/Lexicon.py +1 -1
  5. WMCore/Services/AlertManager/AlertManagerAPI.py +1 -1
  6. WMCore/__init__.py +1 -1
  7. {wmglobalqueue-2.4.3.dist-info → wmglobalqueue-2.4.4rc3.dist-info}/METADATA +1 -1
  8. {wmglobalqueue-2.4.3.dist-info → wmglobalqueue-2.4.4rc3.dist-info}/RECORD +99 -98
  9. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/bin/wmc-dist-patch +0 -0
  10. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/bin/wmc-dist-unpatch +0 -0
  11. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/bin/wmc-httpd +0 -0
  12. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/.couchapprc +0 -0
  13. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/README.md +0 -0
  14. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/_attachments/index.html +0 -0
  15. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/_attachments/js/ElementInfoByWorkflow.js +0 -0
  16. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/_attachments/js/StuckElementInfo.js +0 -0
  17. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/_attachments/js/WorkloadInfoTable.js +0 -0
  18. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/_attachments/js/dataTable.js +0 -0
  19. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/_attachments/js/namespace.js +0 -0
  20. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/_attachments/style/main.css +0 -0
  21. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/couchapp.json +0 -0
  22. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/filters/childQueueFilter.js +0 -0
  23. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/filters/filterDeletedDocs.js +0 -0
  24. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/filters/queueFilter.js +0 -0
  25. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/language +0 -0
  26. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/lib/mustache.js +0 -0
  27. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/lib/validate.js +0 -0
  28. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/lib/workqueue_utils.js +0 -0
  29. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/lists/elementsDetail.js +0 -0
  30. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/lists/filter.js +0 -0
  31. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/lists/stuckElements.js +0 -0
  32. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/lists/workRestrictions.js +0 -0
  33. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/lists/workflowSummary.js +0 -0
  34. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/rewrites.json +0 -0
  35. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/shows/redirect.js +0 -0
  36. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/shows/status.js +0 -0
  37. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/templates/ElementSummaryByWorkflow.html +0 -0
  38. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/templates/StuckElementSummary.html +0 -0
  39. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/templates/TaskStatus.html +0 -0
  40. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/templates/WorkflowSummary.html +0 -0
  41. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/templates/partials/workqueue-common-lib.html +0 -0
  42. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/templates/partials/yui-lib-remote.html +0 -0
  43. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/templates/partials/yui-lib.html +0 -0
  44. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/updates/in-place.js +0 -0
  45. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/validate_doc_update.js +0 -0
  46. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/vendor/couchapp/_attachments/jquery.couch.app.js +0 -0
  47. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/vendor/couchapp/_attachments/jquery.pathbinder.js +0 -0
  48. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/activeData/map.js +0 -0
  49. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/activeData/reduce.js +0 -0
  50. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/activeParentData/map.js +0 -0
  51. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/activeParentData/reduce.js +0 -0
  52. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/activePileupData/map.js +0 -0
  53. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/activePileupData/reduce.js +0 -0
  54. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/analyticsData/map.js +0 -0
  55. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/analyticsData/reduce.js +0 -0
  56. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/availableByPriority/map.js +0 -0
  57. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/conflicts/map.js +0 -0
  58. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/elements/map.js +0 -0
  59. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/elementsByData/map.js +0 -0
  60. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/elementsByParent/map.js +0 -0
  61. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/elementsByParentData/map.js +0 -0
  62. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/elementsByPileupData/map.js +0 -0
  63. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/elementsByStatus/map.js +0 -0
  64. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/elementsBySubscription/map.js +0 -0
  65. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/elementsByWorkflow/map.js +0 -0
  66. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/elementsByWorkflow/reduce.js +0 -0
  67. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/elementsDetailByWorkflowAndStatus/map.js +0 -0
  68. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobInjectStatusByRequest/map.js +0 -0
  69. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobInjectStatusByRequest/reduce.js +0 -0
  70. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobStatusByRequest/map.js +0 -0
  71. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobStatusByRequest/reduce.js +0 -0
  72. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobsByChildQueueAndPriority/map.js +0 -0
  73. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobsByChildQueueAndPriority/reduce.js +0 -0
  74. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobsByChildQueueAndStatus/map.js +0 -0
  75. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobsByChildQueueAndStatus/reduce.js +0 -0
  76. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobsByRequest/map.js +0 -0
  77. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobsByRequest/reduce.js +0 -0
  78. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobsByStatus/map.js +0 -0
  79. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobsByStatus/reduce.js +0 -0
  80. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobsByStatusAndPriority/map.js +0 -0
  81. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/jobsByStatusAndPriority/reduce.js +0 -0
  82. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/openRequests/map.js +0 -0
  83. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/recent-items/map.js +0 -0
  84. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/siteWhitelistByRequest/map.js +0 -0
  85. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/siteWhitelistByRequest/reduce.js +0 -0
  86. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/specsByWorkflow/map.js +0 -0
  87. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/stuckElements/map.js +0 -0
  88. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/wmbsInjectStatusByRequest/map.js +0 -0
  89. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/wmbsInjectStatusByRequest/reduce.js +0 -0
  90. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/wmbsUrl/map.js +0 -0
  91. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/wmbsUrl/reduce.js +0 -0
  92. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/wmbsUrlByRequest/map.js +0 -0
  93. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/wmbsUrlByRequest/reduce.js +0 -0
  94. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/workflowSummary/map.js +0 -0
  95. {wmglobalqueue-2.4.3.data → wmglobalqueue-2.4.4rc3.data}/data/data/couchapps/WorkQueue/views/workflowSummary/reduce.js +0 -0
  96. {wmglobalqueue-2.4.3.dist-info → wmglobalqueue-2.4.4rc3.dist-info}/WHEEL +0 -0
  97. {wmglobalqueue-2.4.3.dist-info → wmglobalqueue-2.4.4rc3.dist-info}/licenses/LICENSE +0 -0
  98. {wmglobalqueue-2.4.3.dist-info → wmglobalqueue-2.4.4rc3.dist-info}/licenses/NOTICE +0 -0
  99. {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
- "state": "unknown",
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["state"] = thread_status
141
+ thread_info["status"] = thread_status
140
142
  except psutil.NoSuchProcess:
141
- thread_info["state"] = "zombie"
143
+ thread_info["status"] = psutil.STATUS_ZOMBIE
142
144
 
143
145
  # Try getting per-thread CPU usage
144
146
  try: