Recover transient Syncthing and SQLite job failures

This commit is contained in:
2026-07-28 14:03:30 +00:00
parent 1009defc46
commit 0b11e2a3a2
5 changed files with 116 additions and 10 deletions
+9
View File
@@ -671,6 +671,15 @@ class ClientJobExecutor:
# Syncthing can expose the per-job directory before the
# ready marker and manifest have arrived atomically as a set.
pass
except RouteSetupError as exc:
# A network interruption can temporarily make the local
# Syncthing REST API unavailable. The staged payload is
# durable and the job must remain recoverable; keep polling
# instead of turning a transient outage into a failed job.
logger.warning("syncthing_status_deferred", extra={
"job_id": definition.job_id,
"error_type": type(exc).__name__,
})
time.sleep(self.poll_interval)
def _target_materialize(