修改适配Linux

This commit is contained in:
wzy-warehouse
2026-06-24 14:16:23 +08:00
parent e5582bab5d
commit 7163ca67f9
3 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -316,7 +316,7 @@ def _background_export(inference_id: int) -> None:
status = "FAIL" if "error" in r else "OK"
logger.info(f"[Pool] {status} {r.get('name', '?')}: {r.get('error', r.get('output', ''))[:100]}")
if inference_id and file_store and "error" not in r:
_write_single_path(inference_id, r.get("output", ""), file_store, db_lock)
_write_single_path(inference_id, r["output"], file_store, db_lock)
results, summary = qgis_pool.submit_job(config, container_models, _on_progress)