Skip to content

Commit

Permalink
fix: ensure monitor duckdb cache dir exists (langflow-ai#2842)
Browse files Browse the repository at this point in the history
ensure monitor duckdb cache dir exists

(cherry picked from commit d9ab00f)
  • Loading branch information
zzzming authored and nicoloboschi committed Jul 30, 2024
1 parent 8242979 commit 8e3561c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/base/langflow/services/monitor/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, settings_service: "SettingsService"):
from langflow.services.monitor.schema import DuckDbMessageModel, TransactionModel, VertexBuildModel

self.settings_service = settings_service
self.base_cache_dir = Path(user_cache_dir("langflow"))
self.base_cache_dir = Path(user_cache_dir("langflow"), ensure_exists=True)
self.db_path = self.base_cache_dir / "monitor.duckdb"
self.table_map: dict[str, type[TransactionModel | DuckDbMessageModel | VertexBuildModel]] = {
"transactions": TransactionModel,
Expand Down

0 comments on commit 8e3561c

Please sign in to comment.