forked from pulp/pulp_puppet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1131062 - propogate cancelation even when download exception occurs
Previously, if a metadata download task was canceled, nectar would still call back after the download was finished and an exception would be raised since SynchronizeWithPuppetForge would not be set up to accept the cancelation. This would cause an exception, which would mark the already-canceled task as failed. Exceptions related to downloading would triggered this cancel->failed behavior as well. The new behavior is to check if a download was canceled before raising an exception. In this case, we mark the metadata download state as STATE_CANCELED and continue. Later during report generation when the metadata and module download states are coalesed into a single report, we set the canceled flag on the report. This lets platform handle the cancelation correctly.
- Loading branch information
Showing
4 changed files
with
32 additions
and
2 deletions.
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
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