mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-18 00:55:50 +00:00
feat(process_label): enhance uWSGI process role detection
- Added a new function `_is_uwsgi_worker` to accurately identify when the application is running within a uWSGI worker. - Updated `get_process_role` to label processes as "uwsgi" based on the new function or command-line arguments, improving process role accuracy. - Expanded unit tests to cover various scenarios for uWSGI role detection, ensuring robust validation of the new logic.
This commit is contained in:
parent
5d424adbe8
commit
a7b4db83fa
3 changed files with 24 additions and 5 deletions
|
|
@ -70,7 +70,6 @@ py-autoreload = 1
|
|||
honour-stdin = true
|
||||
|
||||
# Environment variables
|
||||
env = GEVENT_SUPPORT=True
|
||||
env = PYTHONPATH=/app
|
||||
env = PYTHONUNBUFFERED=1
|
||||
env = PYDEVD_DISABLE_FILE_VALIDATION=1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue