ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/CleanerServer.py
(Generate patch)

Comparing COMP/CRAB/python/CleanerServer.py (file contents):
Revision 1.9 by farinafa, Tue Aug 25 11:56:52 2009 UTC vs.
Revision 1.11 by mcinquil, Wed Apr 28 15:15:28 2010 UTC

# Line 1 | Line 1
1   from Actor import *
2   from crab_exceptions import *
3 + from crab_util import *
4   import common
5   import string
6   from ServerCommunicator import ServerCommunicator
# Line 23 | Line 24 | class CleanerServer(Cleaner):
24          # get updated status from server
25          try:
26              stat = StatusServer(self.cfg_params)
27 <            stat.resynchClientSide()
27 >            warning_msg = stat.resynchClientSide()
28 >            if warning_msg is not None:
29 >                common.logger.info(warning_msg)
30          except:
31              pass
32          
33          # check whether the action is allowable
34 <        Cleaner.check()
34 >        self.check()
35  
36          # notify the server to clean the task
37          csCommunicator = ServerCommunicator(self.server_name, self.server_port, self.cfg_params)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines