Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make ThreadPoolExecutor a class var #461

Merged
merged 5 commits into from
Mar 19, 2020
Merged

fix: make ThreadPoolExecutor a class var #461

merged 5 commits into from
Mar 19, 2020

Conversation

busunkim96
Copy link
Contributor

Partially addresses #455 using @lidiz's suggestion. This does not solve the memory leak issue.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 16, 2020
Copy link

@gnossen gnossen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for taking care of this!

@gnossen
Copy link

gnossen commented Mar 16, 2020

It's worth noting though that you're now essentially setting your maximum concurrency to 5 * multiprocessing.cpu_count()

@gnossen
Copy link

gnossen commented Mar 17, 2020

Word of warning. If you want to support Python 2 users in appengine, you're going to want to explicitly specify max_workers in the constructor. I'm speaking from experience.

@busunkim96 busunkim96 merged commit b526473 into master Mar 19, 2020
gcf-merge-on-green bot pushed a commit that referenced this pull request Mar 25, 2020
🤖 I have created a release \*beep\* \*boop\* 
---
## [1.12.0](https://www.github.com/googleapis/google-auth-library-python/compare/v1.11.3...v1.12.0) (2020-03-25)


### Features

* add mTLS ADC support for HTTP ([#457](https://www.github.com/googleapis/google-auth-library-python/issues/457)) ([bb9215a](https://www.github.com/googleapis/google-auth-library-python/commit/bb9215ad6dee6c1dc7f255a2e4ed7011b85bd6cf))
* add SslCredentials class for mTLS ADC ([#448](https://www.github.com/googleapis/google-auth-library-python/issues/448)) ([dafb41f](https://www.github.com/googleapis/google-auth-library-python/commit/dafb41fae3f513ea9a4f93404f6148bee7dda202))
* fetch id token from GCE metadata server ([#462](https://www.github.com/googleapis/google-auth-library-python/issues/462)) ([97e7700](https://www.github.com/googleapis/google-auth-library-python/commit/97e7700da031bfd80b63b1a3d2abc29c500936ef))


### Bug Fixes

* don't use threads for gRPC AuthMetadataPlugin ([#467](https://www.github.com/googleapis/google-auth-library-python/issues/467)) ([ee373f8](https://www.github.com/googleapis/google-auth-library-python/commit/ee373f88b512a38e791a1c085452c6c6da501eb6))
* make ThreadPoolExecutor a class var ([#461](https://www.github.com/googleapis/google-auth-library-python/issues/461)) ([b526473](https://www.github.com/googleapis/google-auth-library-python/commit/b5264730603947295cc97ecff2f6aef84aa3d6e9))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please).
@tseaver tseaver deleted the use-class-var branch October 28, 2020 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants