Skip to content

Commit

Permalink
fix: cast job array ID to an int
Browse files Browse the repository at this point in the history
  • Loading branch information
neilmunday committed Sep 1, 2024
1 parent 3311467 commit 39a3c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slurmmail/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def __init__(
# has the job array started?
match = Job.JOB_ARRAY_NOT_STARTED_RE.match(job_id)
if match:
self.array_id = match.group(1)
self.array_id = int(match.group(1))
else:
array_id, index = job_id.split("_")
self.array_id = int(array_id)
Expand Down

0 comments on commit 39a3c88

Please sign in to comment.