Wrap blocking mkdir() calls in run_blocking for async startup and setup
This commit is contained in:
@@ -175,7 +175,7 @@ async def _ensure_database_initialized(database_path: str) -> bool:
|
||||
parent_dir = database_path_obj.parent
|
||||
|
||||
try:
|
||||
parent_dir.mkdir(parents=True, exist_ok=True)
|
||||
await run_blocking(parent_dir.mkdir, parents=True, exist_ok=True)
|
||||
except PermissionError:
|
||||
log.warning(
|
||||
"cannot_create_runtime_database_parent",
|
||||
|
||||
Reference in New Issue
Block a user