swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

[Python] Lazy initialisation of thread pool in client

Open jorisgillis opened this issue 4 years ago • 5 comments

Description
Swagger-codegen version

Version 3.0.27. Python client generation (both urlliib3 and asyncio)

Swagger declaration file content or url

Any swagger content.

Command line used for generation

java -jar swagger-codegen.jar -i -l python [--library asyncio]

Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement

This was fixed in swagger codegen 2.

jorisgillis avatar Aug 23 '21 08:08 jorisgillis

hi guys, any updates on this issue?

mdtlyf avatar Oct 11 '21 08:10 mdtlyf

The pull request is still open. Still needs a review to be merged.

jorisgillis avatar Oct 12 '21 06:10 jorisgillis

It would be nice to have this merged. For instance current state prevents usage of a python swagger code generated library in aws lambda (3.8 environment) where multiprocessing.Pool is not supported.

nicolastomeo avatar Apr 20 '22 16:04 nicolastomeo

If anyone could make the merge it would be super nice ! I'm having issue with Pyodide and a python swagger code generated library.

vfreysz avatar Feb 04 '24 06:02 vfreysz

I was trying to have a look on the issue but it's hard to find where the multithread initialisation hapend in the new version. Does anyone have a starting point ?

vfreysz avatar Mar 20 '24 05:03 vfreysz