We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f297d33 commit 71f1c7fCopy full SHA for 71f1c7f
1 file changed
src/ert/scheduler/lsf_driver.py
@@ -4,6 +4,7 @@
4
import itertools
5
import json
6
import logging
7
+import os
8
import re
9
import shlex
10
import shutil
@@ -282,6 +283,13 @@ def __init__(
282
283
self._bjobs_cmd = Path(bjobs_cmd or shutil.which("bjobs") or "bjobs")
284
self._bkill_cmd = Path(bkill_cmd or shutil.which("bkill") or "bkill")
285
286
+ if not shutil.which(self._bsub_cmd):
287
+ logger.error(
288
+ "No bsub command found in PATH, "
289
+ f"job submissions are likely to fail, PATH={os.getenv('PATH')}, "
290
+ f"bsub_cmd={self._bsub_cmd}"
291
+ )
292
+
293
self._jobs: MutableMapping[str, JobData] = {}
294
self._iens2jobid: MutableMapping[int, str] = {}
295
self._max_attempt: int = 100
0 commit comments