Skip to content

Commit 57cf68c

Browse files
committed
chore : get_metadata_from_db 진행도 추가
1 parent e61b566 commit 57cf68c

File tree

2 files changed

+23839
-3
lines changed

2 files changed

+23839
-3
lines changed

llm_utils/tools.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,12 @@ def get_metadata_from_db() -> List[Dict]:
7474
"""
7575

7676
fetcher = _get_fetcher()
77-
urns = fetcher.get_urns()
77+
urns = list(fetcher.get_urns())
7878

7979
metadata = []
80-
for urn in urns:
81-
print(f"Processing URN: {urn}")
80+
total = len(urns)
81+
for idx, urn in enumerate(urns, 1):
82+
print(f"[{idx}/{total}] Processing URN: {urn}")
8283
table_metadata = fetcher.build_table_metadata(urn)
8384
metadata.append(table_metadata)
8485

0 commit comments

Comments
 (0)