forked from rucio/rucio
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clients: Return information on download exception rucio#5250
The different download functions in the `DownloadClient` return lists containing the files and the states of the corresponding downloads. These states also include failed states. If an unknown exception is thrown in the `_download_item` method, the corresponding file, which should be downloaded, is not present in the output list. This leads to two problems; both can be solved by adding the file with the download status `FAILED` to the output list: - The number of files in the input queue and output queue is different, which throws an error. This is easily resolved by setting the file download status to `FAILED`. An error is later thrown. - The client does not print the summary in case there is no items in the output queue. By adding the file to the output queue this problem is resolved.
- Loading branch information
Joel Dierkes
committed
Apr 25, 2022
1 parent
47e93cf
commit fd81b1f
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 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