optional disable download verification for prepro task #974
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.
The download verification for large files takes an absurd amount of time:
Calculating the hash for the 4.7GB Alaska DEM takes about 12 seconds on the cluster. The Alaska region has more than 27k glaciers. But because of the download lock the hash calculation is not multi-processed. That's almost 4 days of calculating the same hash over and over again :-D (I think this is as close to bitcoin mining as I'll ever get...)
Worst of all, it exceeds the cluster time limit, my process failed and it took me a while to figure this out...
In this PR I just added an argument to suppress the verification for the preprocessing task.
But I think we should avoid such large files whenever possible. @fmaussion do you think it would be possible to split this DEM similar to what you did with REMA? Or is there a license/attribution issue?
And @TimoRoth do you think there is a reasonable way to avoid calculating the same hash value over and over again?