Unused worker parameter to WSGIMiddleware
See original GitHub issueChecklist
- The bug is reproducible against the latest release and/or
master
. - There are no similar issues or pull requests to fix it yet.
Describe the bug
The WSGIMiddleware
__init__
takes in a parameter, workers
that is unused:
https://github.com/encode/starlette/blob/8dac5c2c7c986121f57c6741f01b1df300eb5faa/starlette/middleware/wsgi.py#L56-L59
To reproduce
static inspection of source code
Expected behavior
Either use the parameter, or mark it as deprecated.
Actual behavior
no indication that the parameter is unused.
Debugging material
n/a
Environment
n/a
Additional context
n/a
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Processes And Threading — mod_wsgi 4.9.4 documentation
The main alternative to the 'prefork' MPM which can be used on UNIX systems is the 'worker' MPM. If you are unsure which...
Read more >hirefire Documentation - Read the Docs
This is a Python package for HireFire – The Heroku Process Manager: HireFire has the ability to automatically scale your web and worker...
Read more >Configuration file for Tryton — trytond 6.7 documentation
The parameters are database dependent, check the database documentation for a list of valid parameters. Default: The value of the environment variable ......
Read more >Sending Arguments To Background Worker? - Stack Overflow
I know when this is worker.RunWorkerAsync();, I don't understand how to define in worker_DoWork that it should take an int parameter. c# ·...
Read more >Command line options - web2py - The core
Parameters ; Scheduler Deployment; Complete Scheduler signature; Tasks ... but they are not automatically imported since they are not used as often.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can we reopen this?
re: used for testing, that isn’t clear either. For example, fastapi recommends using
WSGIMiddleware
to mount a “WSGI application, for example, Flask, Django, etc.” Their middleware is just an import of the starlette middleware.