From 51677667abc4cd50f9367aa5e60d0584c60a2251 Mon Sep 17 00:00:00 2001 From: Christophe Bornet Date: Wed, 18 Dec 2024 17:05:56 +0100 Subject: [PATCH] fix: Fix missing await in initialize_alembic_log_file (#5334) Fix missing await in initialize_alembic_log_file --- src/backend/base/langflow/services/database/service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/base/langflow/services/database/service.py b/src/backend/base/langflow/services/database/service.py index f316f79f5..0256b8d2a 100644 --- a/src/backend/base/langflow/services/database/service.py +++ b/src/backend/base/langflow/services/database/service.py @@ -68,8 +68,8 @@ class DatabaseService(Service): async def initialize_alembic_log_file(self): # Ensure the directory and file for the alembic log file exists - anyio.Path(self.alembic_log_path.parent).mkdir(parents=True, exist_ok=True) - anyio.Path(self.alembic_log_path).touch(exist_ok=True) + await anyio.Path(self.alembic_log_path.parent).mkdir(parents=True, exist_ok=True) + await anyio.Path(self.alembic_log_path).touch(exist_ok=True) def reload_engine(self) -> None: self._sanitize_database_url()