Skip to content

Commit 59ebfaf

Browse files
committed
Catch and retry on OSError when killing LSF jobs
1 parent 9097b8b commit 59ebfaf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ert/scheduler/driver.py

+4
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ async def _execute_with_retry(
117117
)
118118
except FileNotFoundError as e:
119119
return (False, str(e))
120+
except OSError as e:
121+
logger.error(str(e))
122+
await asyncio.sleep(retry_interval)
123+
continue
120124

121125
stdout, stderr = await process.communicate(stdin)
122126

0 commit comments

Comments
 (0)