Skip to content

Commit

Permalink
Inject nohup to make sure that bkill executes after ert dies
Browse files Browse the repository at this point in the history
  • Loading branch information
xjules committed Oct 10, 2024
1 parent b9cfd46 commit 42fe940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ert/scheduler/lsf_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ async def kill(self, iens: int) -> None:
return_on_msgs=(JOB_ALREADY_FINISHED_BKILL_MSG),
)
await asyncio.create_subprocess_shell(
f"sleep {self._sleep_time_between_bkills}; {self._bkill_cmd} -s SIGKILL {job_id}",
f"nohup sh -c sleep {self._sleep_time_between_bkills}; {self._bkill_cmd} -s SIGKILL {job_id}' &",
start_new_session=True,
stdout=asyncio.subprocess.DEVNULL,
stderr=asyncio.subprocess.DEVNULL,
Expand Down

0 comments on commit 42fe940

Please sign in to comment.