Skip to content

Commit 9557b1a

Browse files
committed
Silence error when terminating jobs
1 parent 2735ed8 commit 9557b1a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

executorlib/task_scheduler/file/queue_spawner.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,10 @@ def terminate_with_pysqa(
110110
)
111111
status = qa.get_status_of_job(process_id=queue_id)
112112
if status is not None and status not in ["finished", "error"]:
113-
qa.delete_job(process_id=queue_id)
114-
113+
try:
114+
qa.delete_job(process_id=queue_id)
115+
except subprocess.CalledProcessError:
116+
pass
115117

116118
def _pysqa_execute_command(
117119
commands: str,

0 commit comments

Comments
 (0)