def do_rewind(self, domain):
     db = open_state_db(domain, self.state_dir)
     assert os.path.exists(db.db_filepath), db.db_filepath
     db = init_state_db(domain, self.state_dir)
     rewind_iteration_state(db, domain, self.rewind)
Beispiel #2
0
 def __init__(self, domain, with_progress=True):
     self._check_for_migration_restrictions(domain)
     self.with_progress = with_progress
     self.domain = domain
     self.statedb = init_state_db(domain)