Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-20 07:59:00

0001 import abc
0002 
0003 from pandaharvester.harvestercore.plugin_base import PluginBase
0004 
0005 
0006 # dummy plugin for sweeper
0007 class BaseSweeper(PluginBase, metaclass=abc.ABCMeta):
0008     # constructor
0009     def __init__(self, **kwarg):
0010         PluginBase.__init__(self, **kwarg)
0011 
0012     # kill a worker
0013     # def kill_worker(self, workspec):
0014     #     retList = self.kill_workers([workspec])
0015     #     return retList[0]
0016 
0017     # kill workers
0018     # @abc.abstractmethod
0019     # def kill_workers(self, workspec_list):
0020     #     pass
0021 
0022     # cleanup for a worker
0023     @abc.abstractmethod
0024     def sweep_worker(self, workspec):
0025         pass