Call mark_process_dead on worker pid if prometheus_client is installed (#212)

This commit is contained in:
Andrii Yurchuk
2024-09-03 22:29:00 +02:00
committed by GitHub
parent 48123af09d
commit af505e8d70
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -38,6 +38,11 @@ try:
except ModuleNotFoundError:
setproctitle = None
try:
from prometheus_client import multiprocess as prometheus_multiprocess
except ModuleNotFoundError:
prometheus_multiprocess = None
class Conf:
"""