Skip to content

Reduce repeated logins to Mergin Maps server - #59

Merged
varmar05 merged 2 commits into
mainfrom
login-handling
Oct 26, 2026
Merged

varmar05 merged 2 commits into
mainfrom
login-handling

Conversation

@varmar05

Copy link
Copy Markdown
Contributor
  • Store auth token next to the project working directory and reuse it after restart
  • Retry failed login, download and sync in the daemon with exponential backoff instead of exiting, exit only after max_failed_retries failed retries of the start
  • Log in again when the server rejects the auth token
  • Remove partially downloaded project when download fails

The solution follows previous work in db-sync.

- Store auth token next to the project working directory and reuse it after restart
- Retry failed login, download and sync in the daemon with exponential backoff
  instead of exiting, exit only after `max_failed_retries` failed retries of the start
- Log in again when the server rejects the auth token
- Remove partially downloaded project when download fails

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@varmar05
varmar05 requested a review from MarcelGeo October 22, 2026 13:27
Comment thread media_sync.py Resolved
Comment thread media_sync.py Resolved
Comment thread media_sync.py Resolved
Comment thread media_sync.py Resolved
Comment thread config.yaml.default Resolved
@varmar05
varmar05 merged commit f42ded7 into main Oct 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants