fix: call push_to_gitea every cycle to retry on failure
This commit is contained in:
+3
-3
@@ -483,14 +483,14 @@ def run_daemon_loop(mirrors: Dict[str, Mirror]) -> None:
|
||||
logger.debug("Checking mirror %s…", mid)
|
||||
try:
|
||||
svn_count = sync_all(m)
|
||||
if svn_count:
|
||||
try:
|
||||
push_to_gitea(m)
|
||||
except GiteaError as ge:
|
||||
logger.warning("Gitea push failed for %s: %s", mid, ge)
|
||||
fetch_from_gitea(m)
|
||||
git_count = sync_git_to_svn(m)
|
||||
if svn_count or git_count:
|
||||
last_sync[mid] = now
|
||||
except (GiteaError) as ge:
|
||||
logger.warning("Gitea push failed for %s: %s", mid, ge)
|
||||
except Exception:
|
||||
logger.exception("Sync cycle failed for %s", mid)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user