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

Retry inconsistent downloads #156

Merged
merged 6 commits into from
Aug 4, 2017
Merged

Conversation

johnbradley
Copy link
Collaborator

@johnbradley johnbradley commented Aug 3, 2017

When downloading a file there is a special 404 that has a resource_not_consistent value in code. This occurs when the file url is not currently ready. A background DukeDS process should finish up with the file and we can try again. Similar to what we did with uploads waiting for the project to get ready we will pause and retry. The user will see a message that we are waiting.
Fixes #152

changes similar to upload to retry while we are waiting for the file to be consistent
moved some code around since it is used in generic places now
Previous commits in this branch made ProjectStatusMonitor redundant.
@johnbradley johnbradley requested a review from dleehr August 3, 2017 19:08
Copy link
Member

@dleehr dleehr left a comment

Choose a reason for hiding this comment

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

Looks good. I like the refactoring of the watcher, removal of ProjectStatusMonitor, and the GetFileURL class that has a retryable run()

@johnbradley johnbradley merged commit b1b1909 into master Aug 4, 2017
@johnbradley johnbradley deleted the retry-inconsistent-download branch August 4, 2017 17:52
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