Standarize scan progress namespace initialization
This commit is contained in:
parent
64f22966a3
commit
27500191b4
1 changed files with 10 additions and 11 deletions
|
|
@ -278,10 +278,9 @@ class LightRAG:
|
||||||
)
|
)
|
||||||
|
|
||||||
initialize_share_data()
|
initialize_share_data()
|
||||||
|
|
||||||
need_init = try_initialize_namespace("scan_progress")
|
need_init = try_initialize_namespace("scan_progress")
|
||||||
scan_progress = get_namespace_data("scan_progress")
|
scan_progress = get_namespace_data("scan_progress")
|
||||||
logger.info(f"scan_progress type after init: {type(scan_progress)}")
|
if need_init:
|
||||||
scan_progress.update(
|
scan_progress.update(
|
||||||
{
|
{
|
||||||
"is_scanning": False,
|
"is_scanning": False,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue