Skip to content

Make FlaskApp number of threads configurable #1979

@nmoreaud

Description

@nmoreaud

Hello

We are migrating a Connexion v2 application to Connexion v3.
We are trying to use FlaskApp, however we encounter bugs in our services due to the number "worker threads" (10 WSGI threads) which is no longer configurable.
I guess the long term solution will be to drop Flask dependency in our software, but for now we'd like to make it work with the backward compatibility layer.
Can you please make the number of worker threads configurable?

https://github.com/spec-first/connexion/blob/main/connexion/apps/flask.py#L133
https://github.com/abersheeran/a2wsgi/blob/master/a2wsgi/wsgi.py#L157
https://connexion.readthedocs.io/en/latest/v3.html#running-the-application

Additional info:

Output of the commands:

Python 3.11.10
connexion==3.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR welcomeWe would welcome and review a PR addressing this issueenhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions