Add is_running property to jobs model
@@ -175,6 +175,10 @@ class ExperimentJob(DiffModel):
status = self.statuses.last()
return status.status if status else None
+ @property
+ def is_running(self):
+ return JobLifeCycle.is_running(self.last_status)
+
@property
def is_done(self):
return JobLifeCycle.is_done(self.last_status)
