def doKillRebuilders(self, *args, **kwargs):
     """
     Action method.
     """
     lg.warn('aborting raid worker for rebuilding %s' %
             self.currentBackupID)
     raid_worker.cancel_task('rebuild', self.currentBackupID)
Esempio n. 2
0
 def abort(self):
     """
     This method should stop this backup by killing the pipe process.
     """
     if _Debug:
         lg.out(_DebugLevel, 'backup.abort id %s, %d' % (str(self.backupID), id(self.ask4abort)))
     self.terminating = True
     if len(self.workBlocks) > 0:
         for blockNumber, filename in self.workBlocks.items():
             raid_worker.cancel_task('make', filename)
     else:
         self._kill_pipe()
Esempio n. 3
0
 def abort(self):
     """
     This method should stop this backup by killing the pipe process.
     """
     if _Debug:
         lg.out(_DebugLevel, 'backup.abort id %s, %d' % (str(self.backupID), id(self.ask4abort)))
     self.terminating = True
     for blockNumber, filename in self.workBlocks.items():
         lg.warn('aborting raid make worker for block %d in %s' % (blockNumber, filename))
         raid_worker.cancel_task('make', filename)
     lg.warn('killing backup pipe')
     self._kill_pipe()
Esempio n. 4
0
 def abort(self):
     """
     This method should stop this backup by killing the pipe process.
     """
     if _Debug:
         lg.out(
             _DebugLevel, 'backup.abort id %s, %d' %
             (str(self.backupID), id(self.ask4abort)))
     self.terminating = True
     if len(self.workBlocks) > 0:
         for blockNumber, filename in self.workBlocks.items():
             raid_worker.cancel_task('make', filename)
     else:
         self._kill_pipe()