Remove unused monitor cleanup logic from LoraManager and DownloadManager

This commit is contained in:
Will Miao
2025-06-13 05:52:52 +08:00
parent 27ef1f1e71
commit a7207084ef
2 changed files with 0 additions and 18 deletions

View File

@@ -166,17 +166,6 @@ class LoraManager:
"""Cleanup resources using ServiceRegistry"""
try:
logger.info("LoRA Manager: Cleaning up services")
# Get monitors from ServiceRegistry
lora_monitor = await ServiceRegistry.get_service("lora_monitor")
if lora_monitor:
lora_monitor.stop()
logger.info("Stopped LoRA monitor")
checkpoint_monitor = await ServiceRegistry.get_service("checkpoint_monitor")
if checkpoint_monitor:
checkpoint_monitor.stop()
logger.info("Stopped checkpoint monitor")
# Close CivitaiClient gracefully
civitai_client = await ServiceRegistry.get_service("civitai_client")