mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-05 08:18:11 +08:00
Call mark_process_dead on worker pid if prometheus_client is installed (#212)
This commit is contained in:
@@ -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:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user