We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c77959 commit 7e30af2Copy full SHA for 7e30af2
1 file changed
taskiq/middlewares/prometheus_middleware.py
@@ -84,7 +84,10 @@ def startup(self) -> None:
84
This function starts prometheus server.
85
It starts it only in case if it's a worker process.
86
"""
87
- from prometheus_client import CollectorRegistry, start_http_server # noqa: PLC0415
+ from prometheus_client import ( # noqa: PLC0415
88
+ CollectorRegistry,
89
+ start_http_server,
90
+ )
91
from prometheus_client.multiprocess import ( # noqa: PLC0415
92
MultiProcessCollector,
93
)
0 commit comments