Duke-GCB / DukeDSClient

Command line program to allow uploading, downloading, and managing projects in the duke-data-service.
MIT License
5 stars 6 forks source link

Retry DukeDS API requests for ConnectionErrors #254

Closed johnbradley closed 5 years ago

johnbradley commented 5 years ago

Changes logic that communicates with DukeDS API to retry a few times when a connection error occurs. There will be 5 retries after waiting a second before each retry.

This is similar to logic that already exists to retry sending to Swift/S3

Fixes #253

This was tested by changing /etc/hosts while running ddsclient upload .... I was able to see the warnings and the ddsclient recover.