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:
SergeantPanda 2026-06-16 16:21:22 -05:00
parent 5d424adbe8
commit a7b4db83fa
3 changed files with 24 additions and 5 deletions

View file

@ -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