Skip to content

Commit 6043358

Browse files
authored
Merge pull request #753 from fstagni/JobMonitorSimpl
Job monitor simplification
2 parents 9a57881 + 024d086 commit 6043358

2 files changed

Lines changed: 12 additions & 53 deletions

File tree

src/WebAppDIRAC/WebApp/handler/JobMonitorHandler.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from DIRAC import gConfig, gLogger
55
from DIRAC.Core.Utilities import DictCache
66
from DIRAC.Core.Utilities.Graphs.Palette import Palette
7-
from DIRAC.RequestManagementSystem.Client.Request import Request
87
from DIRAC.RequestManagementSystem.Client.ReqClient import ReqClient
98
from DIRAC.WorkloadManagementSystem.Client.JobMonitoringClient import JobMonitoringClient
109
from DIRAC.WorkloadManagementSystem.Client.JobManagerClient import JobManagerClient
@@ -256,6 +255,10 @@ def _request(self):
256255
if ownerGroup:
257256
req["OwnerGroup"] = ownerGroup
258257

258+
vo = list(json.loads(self.get_argument("vo", "[]")))
259+
if vo:
260+
req["vo"] = vo
261+
259262
if self.get_argument("startDate", ""):
260263
req["FromDate"] = self.get_argument("startDate")
261264
if self.get_argument("startTime", ""):

src/WebAppDIRAC/WebApp/static/DIRAC/JobMonitor/classes/JobMonitor.js

Lines changed: 8 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,6 @@ Ext.define("DIRAC.JobMonitor.classes.JobMonitor", {
7979
return oReturn;
8080
},
8181
dataFields: [
82-
{
83-
name: "SystemPriority",
84-
type: "float",
85-
},
86-
{
87-
name: "ApplicationNumStatus",
88-
},
8982
{
9083
name: "JobID",
9184
type: "int",
@@ -98,9 +91,6 @@ Ext.define("DIRAC.JobMonitor.classes.JobMonitor", {
9891
{
9992
name: "VerifiedFlag",
10093
},
101-
{
102-
name: "RetrievedFlag",
103-
},
10494
{
10595
name: "Status",
10696
},
@@ -113,9 +103,6 @@ Ext.define("DIRAC.JobMonitor.classes.JobMonitor", {
113103
name: "RescheduleCounter",
114104
type: "int",
115105
},
116-
{
117-
name: "JobSplitType",
118-
},
119106
{
120107
name: "MinorStatus",
121108
},
@@ -130,12 +117,6 @@ Ext.define("DIRAC.JobMonitor.classes.JobMonitor", {
130117
{
131118
name: "JobType",
132119
},
133-
{
134-
name: "MasterJobID",
135-
},
136-
{
137-
name: "KilledFlag",
138-
},
139120
{
140121
name: "RescheduleTime",
141122
},
@@ -151,12 +132,6 @@ Ext.define("DIRAC.JobMonitor.classes.JobMonitor", {
151132
{
152133
name: "JobName",
153134
},
154-
{
155-
name: "AccountedFlag",
156-
},
157-
{
158-
name: "OSandboxReadyFlag",
159-
},
160135
{
161136
name: "LastUpdateTime",
162137
type: "date",
@@ -171,23 +146,17 @@ Ext.define("DIRAC.JobMonitor.classes.JobMonitor", {
171146
dateFormat: "Y-m-d H:i:s",
172147
},
173148
{
174-
name: "OwnerGroup",
149+
name: "VO",
175150
},
176151
{
177-
name: "ISandboxReadyFlag",
152+
name: "OwnerGroup",
178153
},
179154
{
180155
name: "UserPriority",
181156
},
182157
{
183158
name: "Owner",
184159
},
185-
{
186-
name: "DeletedFlag",
187-
},
188-
{
189-
name: "TaskQueueID",
190-
},
191160
{
192161
name: "JobType",
193162
},
@@ -258,6 +227,7 @@ Ext.define("DIRAC.JobMonitor.classes.JobMonitor", {
258227
appStatus: "Application Status",
259228
owner: "Owner",
260229
OwnerGroup: "OwnerGroup",
230+
VO: "VO",
261231
jobGroup: "Job Group",
262232
jobType: "Job Type",
263233
};
@@ -283,6 +253,7 @@ Ext.define("DIRAC.JobMonitor.classes.JobMonitor", {
283253
["status", "status"],
284254
["types", "jobType"],
285255
["OwnerGroup", "OwnerGroup"],
256+
["VO", "VO"],
286257
];
287258

288259
me.leftPanel = Ext.create("Ext.dirac.utils.DiracBaseSelector", {
@@ -414,6 +385,9 @@ Ext.define("DIRAC.JobMonitor.classes.JobMonitor", {
414385
Site: {
415386
dataIndex: "Site",
416387
},
388+
VO: {
389+
dataIndex: "VO",
390+
},
417391
JobName: {
418392
dataIndex: "JobName",
419393
properties: {
@@ -478,27 +452,9 @@ Ext.define("DIRAC.JobMonitor.classes.JobMonitor", {
478452
hidden: true,
479453
},
480454
},
481-
AccountedFlag: {
482-
dataIndex: "AccountedFlag",
483-
properties: {
484-
hidden: true,
485-
},
486-
},
487-
OSandboxReadyFlag: {
488-
dataIndex: "OSandboxReadyFlag",
489-
properties: {
490-
hidden: true,
491-
},
492-
},
493455
Owner: {
494456
dataIndex: "Owner",
495457
},
496-
TaskQueueID: {
497-
dataIndex: "TaskQueueID",
498-
properties: {
499-
hidden: true,
500-
},
501-
},
502458
OwnerGroup: {
503459
dataIndex: "OwnerGroup",
504460
},
@@ -727,7 +683,7 @@ Ext.define("DIRAC.JobMonitor.classes.JobMonitor", {
727683
mode: "local",
728684
store: new Ext.data.ArrayStore({
729685
fields: ["category"],
730-
data: [["Status"], ["Site"], ["Minor Status"], ["Application Status"], ["Owner"], ["Owner Group"], ["Job Group"], ["Job Type"]],
686+
data: [["Status"], ["Site"], ["Minor Status"], ["Application Status"], ["Owner"], ["Owner Group"], ["VO"], ["Job Group"], ["Job Type"]],
731687
}),
732688
triggerAction: "all",
733689
value: "Status",

0 commit comments

Comments
 (0)