File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ def stop(self) -> None:
234234 self .http_server .stop ()
235235 self .http_server = None
236236
237- if hasattr (self , ' ioloop' ) and self .ioloop :
237+ if hasattr (self , " ioloop" ) and self .ioloop :
238238 # Stop the IOLoop
239239 self .ioloop .add_callback (self .ioloop .stop )
240240 self .ioloop = None
@@ -243,7 +243,9 @@ def stop(self) -> None:
243243 # Wait for thread to finish (with timeout)
244244 self .thread .join (timeout = 1.0 )
245245
246- self .server_app .log .info (f"Metrics server stopped on port { getattr (self , 'port' , 'unknown' )} " )
246+ self .server_app .log .info (
247+ f"Metrics server stopped on port { getattr (self , 'port' , 'unknown' )} "
248+ )
247249
248250
249251def start_metrics_server (server_app , port : int ) -> PrometheusMetricsServer :
Original file line number Diff line number Diff line change @@ -3243,7 +3243,7 @@ async def _cleanup(self) -> None:
32433243 self .http_server .stop ()
32443244 if hasattr (self , "metrics_server" ):
32453245 # Stop the metrics server if it's running
3246- if self .metrics_server is not None and hasattr (self .metrics_server , ' stop' ):
3246+ if self .metrics_server is not None and hasattr (self .metrics_server , " stop" ):
32473247 self .metrics_server .stop ()
32483248
32493249 def start_ioloop (self ) -> None :
You can’t perform that action at this time.
0 commit comments