File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/DIRAC/WorkloadManagementSystem Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ def execute(self):
152
152
153
153
# Check that there is enough slots locally
154
154
result = self ._checkCEAvailability (self .computingElement )
155
- if not result ["OK" ]:
155
+ if not result ["OK" ] or result [ "Value" ] :
156
156
return result
157
157
158
158
for queueName , queueDictionary in queueDictItems :
@@ -177,7 +177,7 @@ def execute(self):
177
177
178
178
# Check that there is enough slots in the remote CE to match a job
179
179
result = self ._checkCEAvailability (ce )
180
- if not result ["OK" ] or ( result ["OK" ] and result [ " Value" ]) :
180
+ if not result ["OK" ] or result ["Value" ]:
181
181
self .failedQueues [queueName ] += 1
182
182
continue
183
183
@@ -317,12 +317,12 @@ def execute(self):
317
317
318
318
# Check that there is enough slots locally
319
319
result = self ._checkCEAvailability (self .computingElement )
320
- if not result ["OK" ]:
320
+ if not result ["OK" ] or result [ "Value" ] :
321
321
return result
322
322
323
323
# Check that there is enough slots in the remote CE to match a new job
324
324
result = self ._checkCEAvailability (ce )
325
- if not result ["OK" ] or ( result ["OK" ] and result [ " Value" ]) :
325
+ if not result ["OK" ] or result ["Value" ]:
326
326
self .failedQueues [queueName ] += 1
327
327
break
328
328
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ def main():
26
26
# from DIRAC.Core.Workflow.Parameter import *
27
27
from DIRAC import gLogger
28
28
from DIRAC .Core .Workflow .Workflow import fromXMLFile
29
+ from DIRAC .Core .Utilities .Proxy import executeWithoutServerCertificate
29
30
from DIRAC .WorkloadManagementSystem .Client .JobReport import JobReport
30
31
from DIRAC .AccountingSystem .Client .DataStoreClient import DataStoreClient
31
32
from DIRAC .RequestManagementSystem .Client .Request import Request
@@ -34,6 +35,7 @@ def main():
34
35
sys .path .insert (0 , os .path .realpath ("." ))
35
36
gLogger .showHeaders (True )
36
37
38
+ @executeWithoutServerCertificate
37
39
def jobexec (jobxml , wfParameters ):
38
40
jobfile = os .path .abspath (jobxml )
39
41
if not os .path .exists (jobfile ):
You can’t perform that action at this time.
0 commit comments