reveal logs

This commit is contained in:
Billy Bao 2025-12-02 11:53:03 +08:00
parent 0d30193a5f
commit 79e5f88db2
2 changed files with 6 additions and 6 deletions

View file

@ -222,8 +222,8 @@ def install_mineru() -> None:
["uv", "venv", str(venv_dir)],
cwd=str(tools_dir),
env=env,
stdout=subprocess.DEVNULL,
stderr=subprocess.PIPE,
# stdout=subprocess.DEVNULL,
# stderr=subprocess.PIPE,
)
else:
logging.info("Virtual environment exists at %s. Reusing it.", venv_dir)
@ -237,8 +237,8 @@ def install_mineru() -> None:
"--extra-index-url", "https://pypi.org/simple",
],
cwd=str(tools_dir),
stdout=subprocess.DEVNULL,
stderr=subprocess.PIPE,
# stdout=subprocess.DEVNULL,
# stderr=subprocess.PIPE,
env=env,
)
@ -256,4 +256,4 @@ def install_mineru() -> None:
raise RuntimeError(f"MinerU installation failed: {mineru_exec} is not functional")
os.environ["MINERU_EXECUTABLE"] = str(mineru_exec)
logging.info("MinerU installation completed successfully. Executable: %s", mineru_exec)
logging.info("MinerU installation completed successfully. Executable: %s", mineru_exec)

View file

@ -735,7 +735,7 @@ async def insert_es(task_id, task_tenant_id, task_dataset_id, chunks, progress_c
mom_ck["available_int"] = 0
flds = list(mom_ck.keys())
for fld in flds:
if fld not in ["id", "content_with_weight", "doc_id", "kb_id", "available_int"]:
if fld not in ["id", "content_with_weight", "doc_id", "kb_id", "available_int", "oosition_int"]:
del mom_ck[fld]
mothers.append(mom_ck)