removed cancel request
This commit is contained in:
@@ -191,10 +191,6 @@ async def lifespan(_application: FastAPI):
|
||||
)
|
||||
if _download_service_instance is not None:
|
||||
logger.info("Stopping download service...")
|
||||
await asyncio.wait_for(
|
||||
_download_service_instance.stop(timeout=min(10.0, remaining_time())),
|
||||
timeout=min(15.0, remaining_time())
|
||||
)
|
||||
logger.info("Download service stopped successfully")
|
||||
except asyncio.TimeoutError:
|
||||
logger.warning("Download service shutdown timed out")
|
||||
@@ -206,7 +202,6 @@ async def lifespan(_application: FastAPI):
|
||||
progress_service = get_progress_service()
|
||||
logger.info("Cleaning up progress service...")
|
||||
# Clear any active progress tracking and subscribers
|
||||
progress_service._subscribers.clear()
|
||||
progress_service._active_progress.clear()
|
||||
logger.info("Progress service cleanup complete")
|
||||
except Exception as e: # pylint: disable=broad-exception-caught
|
||||
|
||||
Reference in New Issue
Block a user