Skip to content

Commit 225bdc0

Browse files
committed
refactor: improve handling of endpoints metadata to lazy load them
chore: fix metadata init
1 parent d9ff7ac commit 225bdc0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Publish tutorial to GitHub Pages
22
on:
33
push:
44
branches: ["main"]
5+
paths:
6+
- 'tutorial/**'
57
workflow_dispatch:
68

79
permissions:

src/sparql_llm/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ def _ensure_loaded(self) -> None:
218218
f"💾 Loaded endpoints metadata from {ENDPOINTS_METADATA_FILE.resolve()} "
219219
f"for {len(self._void_dict)} endpoints"
220220
)
221+
self._initialized = True
221222
return
222223
except Exception as e:
223224
logger.debug(f"Could not load metadata from {ENDPOINTS_METADATA_FILE}: {e}")

0 commit comments

Comments
 (0)