Commit 9f74e4c4 authored by Cage, Gregory's avatar Cage, Gregory
Browse files

Add more states to get_state

parent 88e7e94c
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
[tool.poetry]
name = "nova-galaxy"
version = "0.7.1"
version = "0.7.2"
description = "Utilties for accessing the ORNL Galaxy instance"
authors = ["Greg Watson <watsongr@ornl.gov>", "Gregory Cage <cagege@ornl.gov>"]
readme = "README.md"
+4 −0
Original line number Diff line number Diff line
@@ -137,6 +137,10 @@ class Job:
            job = self.galaxy_instance.jobs.show_job(self.id)
            if job["state"] == "running":
                self.status.state = WorkState.RUNNING
            elif job["state"] == "error":
                self.status.state = WorkState.ERROR
            elif job["state"] == "deleted":
                self.status.state = WorkState.DELETED
        return self.status

    def get_results(self) -> Outputs:
+1 −0
Original line number Diff line number Diff line
@@ -12,3 +12,4 @@ class WorkState(Enum):
    RUNNING = "running"
    FINISHED = "finished"
    ERROR = "error"
    DELETED = "deleted"