Fixed an issue where reading process logs throws an error when DATA_DIR is moved to a networked drive. #6803

This commit is contained in:
Akshay Joshi
2023-11-23 16:32:52 +05:30
parent a9ca7a2fd4
commit 338bb64a55
2 changed files with 2 additions and 1 deletions

View File

@@ -478,7 +478,7 @@ class BatchProcess:
return 0, True
with open(logfile, 'rb') as f:
eofs = os.fstat(f.fileno()).st_size
eofs = os.path.getsize(logfile)
f.seek(pos, 0)
if pos == eofs and ecode is None:
completed = False