Skip to content

Commit

Permalink
fix: ensure monitor duckdb cache dir exists (#2842)
Browse files Browse the repository at this point in the history
ensure monitor duckdb cache dir exists
  • Loading branch information
zzzming authored Jul 19, 2024
1 parent 224f209 commit d9ab00f
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 d9ab00f

Please sign in to comment.