redirectory.libs_int.service.gunicorn_server module¶
-
class
redirectory.libs_int.service.gunicorn_server.
GunicornServer
(app, options=None)[source]¶ Bases:
gunicorn.app.base.BaseApplication
This class provides the ability to run gunicorn server from inside of python instead of the running it through the command prompt Gives you a nicer way to handle it and you can override key methods to make it more specific for our use case
-
static
get_number_of_workers
(is_worker: bool = False)[source]¶ Calculates the number of workers the gunicorn server will use
-
static