Skip to content

Commit

Permalink
chg: Bump gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Aug 15, 2024
1 parent b9c0081 commit 7a881aa
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 16 deletions.
14 changes: 8 additions & 6 deletions bin/start_website.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
#!/usr/bin/env python3

from __future__ import annotations

import logging
import logging.config

from typing import Optional

from subprocess import Popen

from lacus.default import AbstractManager
from lacus.default import get_config, get_homedir
from lacus.default import get_config, get_homedir, AbstractManager

logging.config.dictConfig(get_config('logging'))


class Website(AbstractManager):

def __init__(self, loglevel: Optional[int]=None) -> None:
def __init__(self, loglevel: int | None=None) -> None:
super().__init__(loglevel)
self.script_name = 'website'
self.process = self._launch_website()
self.process: Popen = self._launch_website() # type: ignore[type-arg]
self.set_running()

def _launch_website(self) -> Popen: # type: ignore[type-arg]
Expand All @@ -29,6 +28,9 @@ def _launch_website(self) -> Popen: # type: ignore[type-arg]
'--graceful-timeout', '2', '--timeout', '300',
'-b', f'{ip}:{port}',
'--log-level', 'info',
'--max-requests', '2000',
'--max-requests-jitter', '100',
'--name', 'website_lacus',
'web:app'],
cwd=website_dir)

Expand Down
119 changes: 110 additions & 9 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ python = "^3.8"
redis = {version = "^5.0.8", extras = ["hiredis"]}
flask-restx = "^1.3.0"
werkzeug = "^3.0.3"
gunicorn = "^22.0.0"
gunicorn = {version = "^23.0.0", extras = ["setproctitle"]}
lacuscore = "^1.10.10"
rich = "^13.7.1"
psutil = "^6.0.0"
Expand Down

0 comments on commit 7a881aa

Please sign in to comment.