fix: tolerate transient continuation read locks and record regression results
This commit is contained in:
1 parent
b47059587a
commit
e655797e32
5 files changed
+111
-3
No files matched your search
@@ -22,7 +22,13 @@ while True:
|
||||
(root/'project-session-result.tsv').write_text(f'{session}\\t{job}\\tsaved_ok\\tsession_verified',encoding='utf-8')
|
||||
with (root/'steps.txt').open('a') as f:f.write(job+'\\n')
|
||||
while not (root/'project-session-next.tsv').exists():time.sleep(.005)
|
||||
token,job=(root/'project-session-next.tsv').read_text().split('\\t')
|
||||
# Match the real VBS continuation reader's bounded sharing-denial retry.
|
||||
for attempt in range(20):
|
||||
try:
|
||||
token,job=(root/'project-session-next.tsv').read_text().split('\\t')
|
||||
break
|
||||
except (PermissionError,FileNotFoundError):time.sleep(.05)
|
||||
else:raise RuntimeError('control read remained unavailable')
|
||||
(root/'project-session-next.tsv').unlink()
|
||||
if token!=session:sys.exit(8)
|
||||
if job=='close':break
|
||||
|
||||
Reference in new issue
Block a user