Пример #1
0
 def wait_sync(self):
     while True:
         time.sleep(5)
         repo1 = seaf_op.seaf_get_repo(self.cli1_dir, self.repo_id)
         if repo1 is None:
             continue
         repo2 = seaf_op.seaf_get_repo(self.cli2_dir, self.repo_id)
         if repo2 is None:
             continue
         if repo1.head_cmmt_id == repo2.head_cmmt_id:
             break
Пример #2
0
 def wait_sync(self):
     while True:
         time.sleep(5)
         repo1 = seaf_op.seaf_get_repo(self.cli1_dir, self.repo_id)
         if repo1 is None:
             continue
         repo2 = seaf_op.seaf_get_repo(self.cli2_dir, self.repo_id)
         if repo2 is None:
             continue
         if repo1.head_cmmt_id == repo2.head_cmmt_id:
             break
Пример #3
0
 def wait_sync(self):
     max_retry = 12
     cur_retry = 0
     while cur_retry < max_retry:
         time.sleep(5)
         cur_retry += 1
         repo1 = seaf_op.seaf_get_repo(self.cli1_dir, self.repo_id)
         if repo1 is None:
             continue
         repo2 = seaf_op.seaf_get_repo(self.cli2_dir, self.repo_id)
         if repo2 is None:
             continue
         if repo1.head_cmmt_id == repo2.head_cmmt_id:
             break
Пример #4
0
 def wait_sync(self):
     max_retry = 12
     cur_retry = 0
     while cur_retry < max_retry:
         time.sleep(5)
         cur_retry += 1
         repo1 = seaf_op.seaf_get_repo(self.cli1_dir, self.repo_id)
         if repo1 is None:
             continue
         repo2 = seaf_op.seaf_get_repo(self.cli2_dir, self.repo_id)
         if repo2 is None:
             continue
         if repo1.head_cmmt_id == repo2.head_cmmt_id:
             break