Skip to content

Ensure rsync is completed before data processing #144

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

Open
clemgoyens opened this issue Oct 19, 2021 · 3 comments
Open

Ensure rsync is completed before data processing #144

clemgoyens opened this issue Oct 19, 2021 · 3 comments
Milestone

Comments

@clemgoyens
Copy link
Contributor

@corizzi
Data are transferred from the rugged PC to the server. On the server we have the automatic scheduler running... We often have an error mentioning that the "metadata.txt" file is missing. However, when looking at the raw data, the metadata.txt file is there (and processor runs fine when done manually). So we think that the error arises because the rsync is not yet completed. If this is the case, do you know a way to check if the data has been transferred completely from the rugged PC to the server with rsync? Or any idea how we could avoid processing when data transfer from a single sequence is not yet completed? Thanks!

@jkuusk
Copy link

jkuusk commented Oct 19, 2021

A simple workaround that first came to my mind is syncing some lock file (e.g. the same metadata.txt) separately after syncing the rest. I.e. exclude the metadata.txt from the main sync and add another rsync call to the end of the script that syncs only the metadata.txt. If metadata.txt exists on the server then (unless the first rsync failed) the rest of the data should be also fully synced to the server.

@shunt16
Copy link
Member

shunt16 commented Nov 5, 2021

Opened issue for this on hypernets_tools - can't progress here until that is closed

@pdevis
Copy link
Member

pdevis commented Dec 10, 2021

The log files are synced after the data, so if any of the log files are there, we can start processing the data. Should be sufficient for us right? I have closed the issue on hypernets_tools.

@pdevis pdevis modified the milestones: v1.0, v2.1 Mar 25, 2024
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

No branches or pull requests

4 participants