mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-22 12:58:36 +00:00
Added job_status property to ExecutionContext
This commit is contained in:
parent
b31a9bd61a
commit
32f3dc21e4
@ -123,6 +123,12 @@ class ExecutionContext(object):
|
|||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@property
|
||||||
|
def job_status(self):
|
||||||
|
if not self.current_job:
|
||||||
|
return None
|
||||||
|
return self.current_job.result.status
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def workload(self):
|
def workload(self):
|
||||||
return getattr(self.spec, 'workload', None)
|
return getattr(self.spec, 'workload', None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user