fix: Windows permission error on ingest service tmp files (#1280)
This commit is contained in:
parent
a09cd7a892
commit
f1cbff0fb7
|
@ -121,6 +121,7 @@ class IngestService:
|
||||||
path_to_tmp.write_text(str(file_data))
|
path_to_tmp.write_text(str(file_data))
|
||||||
documents = reader.load_data(path_to_tmp)
|
documents = reader.load_data(path_to_tmp)
|
||||||
finally:
|
finally:
|
||||||
|
tmp.close()
|
||||||
path_to_tmp.unlink()
|
path_to_tmp.unlink()
|
||||||
logger.info(
|
logger.info(
|
||||||
"Transformed file=%s into count=%s documents", file_name, len(documents)
|
"Transformed file=%s into count=%s documents", file_name, len(documents)
|
||||||
|
|
Loading…
Reference in New Issue