Skip to content

Commit 9f6a623

Browse files
committed
fix: Fixing documentation on gMonitor
1 parent 0914453 commit 9f6a623

File tree

1 file changed

+0
-6
lines changed
  • docs/source/DeveloperGuide/Systems/RequestManagement

1 file changed

+0
-6
lines changed

docs/source/DeveloperGuide/Systems/RequestManagement/index.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ extend `RequestValidator` to cope with the new type. The handler should be a fun
247247
constructor (__init__) and () operator ( __call__)::
248248

249249
""" KillParrot operation handler """
250-
from DIRAC import gMonitor
251250
from DIRAC.RequestManagementSystem.private.OperationHandlerBase import OperationHandlerBase
252251
import random
253252

@@ -264,9 +263,6 @@ constructor (__init__) and () operator ( __call__)::
264263
""" constructor -- DO NOT CHANGE its arguments list """
265264
# # AND ALWAYS call BASE class constructor (or it won't work at all)
266265
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", ... )
270266

271267
def __call__( self ):
272268
""" this has to be defined and should return S_OK/S_ERROR """
@@ -282,11 +278,9 @@ constructor (__init__) and () operator ( __call__)::
282278
self.log.error( "Parrot is still alive" )
283279
self.operation.Error = "It's only sleeping"
284280
self.operation.Status = "Failed"
285-
gMonitor.addMark( "ParrotsAlive" , 1 )
286281
else:
287282
self.log.info( "Parrot is stone dead")
288283
self.operation.Status = "Done"
289-
gMonitor.addMark( "ParrotsDead", 1)
290284
# # return S_OK/S_ERROR (always!!!)
291285
return S_OK()
292286

0 commit comments

Comments
 (0)