@@ -247,7 +247,6 @@ extend `RequestValidator` to cope with the new type. The handler should be a fun
247
247
constructor (__init__) and () operator ( __call__)::
248
248
249
249
""" KillParrot operation handler """
250
- from DIRAC import gMonitor
251
250
from DIRAC.RequestManagementSystem.private.OperationHandlerBase import OperationHandlerBase
252
251
import random
253
252
@@ -264,9 +263,6 @@ constructor (__init__) and () operator ( __call__)::
264
263
""" constructor -- DO NOT CHANGE its arguments list """
265
264
# # AND ALWAYS call BASE class constructor (or it won't work at all)
266
265
OperationHandlerBase.__init__(self, request, csPath )
267
- # # put there something more if you need, i.e. gMonitor registration
268
- gMonitor.registerActivity( "ParrotsDead", ... )
269
- gMonitor.registerActivity( "ParrotsAlive", ... )
270
266
271
267
def __call__( self ):
272
268
""" this has to be defined and should return S_OK/S_ERROR """
@@ -282,11 +278,9 @@ constructor (__init__) and () operator ( __call__)::
282
278
self.log.error( "Parrot is still alive" )
283
279
self.operation.Error = "It's only sleeping"
284
280
self.operation.Status = "Failed"
285
- gMonitor.addMark( "ParrotsAlive" , 1 )
286
281
else:
287
282
self.log.info( "Parrot is stone dead")
288
283
self.operation.Status = "Done"
289
- gMonitor.addMark( "ParrotsDead", 1)
290
284
# # return S_OK/S_ERROR (always!!!)
291
285
return S_OK()
292
286
0 commit comments