Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create lock file after sync is finished #9

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

tleguijt
Copy link
Collaborator

We want to to create a lock file after sync is finished.
If a process is killed during the sync process, the next time it starts it needs to perform the sync again. If the lock file is already there is won't do anything

Fixes

Move the 'create lock file' logic down

Notes

Keep in mind that once we have a lease-option for files we can utilize that; create a lock file which we lease, and as long there is an active lease, the process can wait syncing until the lease is released.
However; there is a risk of a lease never to be released which prevents a process from continuing if it relies on the sync process. So we need to think this through well.

@tleguijt tleguijt merged commit 631a024 into main Jan 15, 2025
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.

1 participant