This repository has been archived by the owner on Sep 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sr-gi
force-pushed
the
191-pick-wsgi-api
branch
from
August 7, 2020 14:01
a00f927
to
e0492d8
Compare
The API can be run either using gunicorn (default) or Flask webserver. The later is not recomended for production cases, but may be enough if the tower only used by yourself
sr-gi
force-pushed
the
191-pick-wsgi-api
branch
from
August 18, 2020 14:31
e0492d8
to
f3ea880
Compare
sr-gi
force-pushed
the
191-pick-wsgi-api
branch
from
August 18, 2020 14:45
30b5518
to
4ddb5d2
Compare
bigspider
reviewed
Aug 19, 2020
bigspider
reviewed
Aug 19, 2020
bigspider
reviewed
Aug 19, 2020
bigspider
suggested changes
Aug 19, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No major comment, apart from a typo that breaks the --wsgi argument.
Python 3.8 processes are created using spawn for MacOS instead of fork (which use to be the default). The previous version of the code was passing some data that cannot be serialised (pickled) when spawn is used, so it needed to be reworked. Forcing fork instead of spawn may have also worked, but Windows does not support it, so the old version of the code would have failed on Windows anyway.
sr-gi
force-pushed
the
191-pick-wsgi-api
branch
from
August 19, 2020 12:49
e7f8a43
to
54e7f24
Compare
This should be working now. Happened to find an issue regarding python 3.8 and MacOS that extended to Windows also. It should work with versions prior to 3.8 and 3.8 onwards with the current version. |
bigspider
approved these changes
Aug 20, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
gunicorn
is used as the WSGI server to run the api by default, however, in other setups it may make sense using something different:uWSGI
may be an alternative.This PR adds the config parameters needed to allow the customisation of the WSGI server and adapt the daemon to run it.
partially covers #191 (not covers
uWSGI
for Windows environments, will leave as a followup since I cannot tests it personally).This also fixes the issue with
e2e
testing leaving thegunicorn
running. End-to-end test switched back to useflask
now there's an option for it.