uwsgi-docs
uwsgi-docs copied to clipboard
Overriding Workers
The https://github.com/unbit/uwsgi-docs/blob/master/WorkerOverride.rst page has a few problems:
- the preamble points to some branch although it’s in uWSGI proper
- it’s missing a link from the main page thus impossible to find
- could you please document python-worker-override better? Is it possible to pass a callable or something such that the worker doesn’t get instantiated by an import side-effect? that makes it really hard to test.
Hello @hynek, be my guest! the first two should be easy to fix with a pull request :)
Done, it would be nice if someone could fix 3. :)
Is the code snippet in https://github.com/unbit/uwsgi-docs/blob/master/WorkerOverride.rst still supposed to work on master? The imported uwsgi module has no sockets attribute. So there is no way of binding the sockets to the server.
Did some research and it seems that https://github.com/unbit/uwsgi/commit/ac735e4c3cf2f956a1c26f80577f903fd2f37f4a was never merged, so the example can't possibly work on master branch.
@mcallistersean yep, nice catch, i have cherry-picked the commit. Thanks a lot
So is the WorkerOverride page describing a correct scenario? Can I override the worker?