-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #469 from omnivector-solutions/tucker/PENG-2064--a…
…dd-slurm-job-state PENG-2064 Capture job state info in jobbergate
- Loading branch information
Showing
34 changed files
with
3,632 additions
and
2,419 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
#SBATCH -J dummy_job | ||
#SBATCH -t 60 | ||
|
||
echo "Executing simple job script" | ||
|
||
echo "Simple output from $HOSTNAME" > simple-output.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
#SBATCH -J dummy_job | ||
#SBATCH -t 0:0:60 | ||
|
||
echo "Executing sleepy job script" | ||
sleep 120 | ||
echo "Sleepy job script woke up" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.8-slim-buster | ||
FROM python:3.12-slim-bookworm | ||
|
||
WORKDIR /app | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,8 @@ | ||
from collections import defaultdict | ||
from enum import Enum | ||
from typing import DefaultDict | ||
from auto_name_enum import AutoNameEnum, auto | ||
|
||
|
||
class FileType(str, Enum): | ||
class FileType(AutoNameEnum): | ||
"""File type enum.""" | ||
|
||
ENTRYPOINT = "ENTRYPOINT" | ||
SUPPORT = "SUPPORT" | ||
|
||
|
||
class JobSubmissionStatus(str, Enum): | ||
""" | ||
Enumeration of possible job_submission statuses. | ||
""" | ||
|
||
CREATED = "CREATED" | ||
SUBMITTED = "SUBMITTED" | ||
COMPLETED = "COMPLETED" | ||
FAILED = "FAILED" | ||
CANCELLED = "CANCELLED" | ||
REJECTED = "REJECTED" | ||
|
||
|
||
status_map: DefaultDict[str, JobSubmissionStatus] = defaultdict( | ||
lambda: JobSubmissionStatus.SUBMITTED, | ||
COMPLETED=JobSubmissionStatus.COMPLETED, | ||
FAILED=JobSubmissionStatus.FAILED, | ||
CANCELLED=JobSubmissionStatus.CANCELLED, | ||
) | ||
ENTRYPOINT = auto() | ||
SUPPORT = auto() |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.