-
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.
Merge pull request juju#18681 from SimonRichardson/allow-limiter-to-g…
…ive-up juju#18681 If the resource opener has a limit set, either globally or for an application, we want to be able to tell the opener to give up. Either by creating a timeout or by the client closing. Either way, the original implementation didn't allow this, it would just block forever. We can swap out the channels for the weighted semaphore, which will allow the nice and easy cancellation of resources. ## QA steps ```sh $ juju bootstrap lxd test $ juju add-model default $ juju controller-config controller-resource-download-limit=1 $ juju deploy juju-qa-test qa1 --resource foo-file=3 $ juju add-unit -n 10 ```
- Loading branch information
Showing
7 changed files
with
153 additions
and
72 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
Oops, something went wrong.