question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unused worker parameter to WSGIMiddleware

See original GitHub issue

Checklist

  • 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cancan101commented, Oct 8, 2020

Can we reopen this?

0reactions
cancan101commented, Sep 29, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found