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

fixed rclone cmd bug #114

Merged
merged 4 commits into from
Sep 18, 2024

Conversation

anandhu-eng
Copy link

No description provided.

anandhu-eng pushed a commit to anandhu-eng/cm4mlops that referenced this pull request Sep 17, 2024
@anandhu-eng anandhu-eng marked this pull request as draft September 17, 2024 10:03
env['CM_DOWNLOAD_CMD'] = f" || ((rm -f {env['CM_DOWNLOAD_FILENAME']} || true) && rclone {rclone_copy_using} {q}{url}{q} {q}{os.path.join(os.getcwd(), temp_download_file)}{q} -P)"
else:
env['CM_DOWNLOAD_CMD'] = f" || ((rm -f {env['CM_DOWNLOAD_FILENAME']} || true) && rclone {rclone_copy_using} {q}{url}{q} {q}{os.path.join(os.getcwd(), env['CM_DOWNLOAD_FILENAME'])}{q} -P"
env['CM_DOWNLOAD_CMD'] = f"rclone {rclone_copy_using} {q}{url}{q} {q}{os.path.join(os.getcwd(), env['CM_DOWNLOAD_FILENAME'])}{q} -P --error-on-no-transfer"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What i understood is, if the URL given for rclone is wrong, rclone reads it as an empty directory, that's why we did not get any error code or the exit code value as 1. In order to prevent this happening, --error-on-no-transfer flag is added.

@anandhu-eng anandhu-eng marked this pull request as ready for review September 18, 2024 06:44
@arjunsuresh arjunsuresh merged commit ab28fa4 into GATEOverflow:mlperf-inference Sep 18, 2024
24 of 30 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