Skip to content

Commit

Permalink
Fix bugs with Sun Grid Engine
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen authored Jan 28, 2025
1 parent 2bbaef1 commit eb3c6af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pysqa/wrapper/sge.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ def leaf_to_dict(leaf):
}
)

@staticmethod
def get_job_id_from_output(queue_submit_output: str) -> int:
"""Extracts the job ID from the output of the job submission command."""
return int(queue_submit_output.splitlines()[-1].rstrip().lstrip().split()[-1])

def render_submission_template(
self,
command: str,
Expand Down

0 comments on commit eb3c6af

Please sign in to comment.