Skip to content

Commit

Permalink
Fix bugs with Sun Grid Engine (#382)
Browse files Browse the repository at this point in the history
* Fix bugs with Sun Grid Engine

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update sge.py

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
jan-janssen and pre-commit-ci[bot] authored Jan 28, 2025
1 parent 2bbaef1 commit de4c9e2
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.strip().split(".")[0])

def render_submission_template(
self,
command: str,
Expand Down

0 comments on commit de4c9e2

Please sign in to comment.