def doDeleteAllBackups(self, *args, **kwargs): """ Action method. """ lg.out(2, "backup_monitor.doDeleteAllBackups") # cancel all tasks and jobs backup_control.DeleteAllTasks() backup_control.AbortAllRunningBackups() # remove all local files and all backups backup_control.DeleteAllBackups() # erase all remote info backup_matrix.ClearRemoteInfo() # also erase local info backup_matrix.ClearLocalInfo() # finally save the list of current suppliers and clear all stats # backup_matrix.suppliers_set().UpdateSuppliers(contactsdb.suppliers()) from customer import io_throttle io_throttle.DeleteAllSuppliers()
def doCleanUpSendingQueue(self, *args, **kwargs): """ Action method. """ io_throttle.DeleteAllSuppliers()