Skip to content

Commit 43a2714

Browse files
committed
Fix OpenPBSDriver.kill() getting malformed input
This commit fixes the issue where we get `qdel: illegally formed job identifier: 'job_1 job_2'` when killing jobs. This is fixed by not joining the list of job ids into a single argument
1 parent 5462c99 commit 43a2714

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ert/scheduler/openpbs_driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ async def kill(self, realizations: Iterable[int]) -> None:
252252
return
253253

254254
process_success, process_message = await self._execute_with_retry(
255-
[str(self._qdel_cmd), " ".join(job_ids_to_kill)],
255+
[str(self._qdel_cmd), *job_ids_to_kill],
256256
retry_codes=(QDEL_REQUEST_INVALID,),
257257
accept_codes=(QDEL_JOB_HAS_FINISHED,),
258258
total_attempts=self._max_pbs_cmd_attempts,

0 commit comments

Comments
 (0)