-
Notifications
You must be signed in to change notification settings - Fork 2
Sync metadata #14
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
ssjunnebo
wants to merge
11
commits into
NationalGenomicsInfrastructure:master
Choose a base branch
from
ssjunnebo:sync_metadata
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Sync metadata #14
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
9170850
Sync metadata
ssjunnebo b205f2e
Correct rsync command
ssjunnebo 3b8820a
set appropriate paths for remote and local rsync
ssjunnebo 50c2194
Merge branch 'master' of github.com:ssjunnebo/dataflow_transfer into …
ssjunnebo 20da277
Fix/add tests
ssjunnebo b83542d
Versioning and documentation
ssjunnebo e59d773
Add `--exclude='*'` to last option for metadata rsync instead of in c…
ssjunnebo 80bed1f
Change miarka_destination to remote_destination
ssjunnebo e25bd15
Change remote to metadata_only
ssjunnebo e59af6f
Make sure metadata gets synced even if transfer to HPC is done
ssjunnebo 22521e4
remove todo
ssjunnebo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am I missing something or Is this not called anywhere yet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's called in dataflow_transfer.py, by
process_runThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder how I missed that. But anyhow, so the sync is triggered once the sequencing is finished but after that we don't really ensure that it finished properly right? Not sure how to change it, but we have had occassional errors on the rsync to the nas-ns. But maybe I misinterpret and its actually attempted again if failed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, if the exit code of the rsync is not 0 it will retry. The exception is if the first case,
if run.final_sync_successful and run.has_status("transferred_to_hpc")is true, then it wouldn't get to the metadata sync step. Maybe I can add another check in that case.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added some additional logic to
process_runso now it should be synced even if the sync to miarka is finished