mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +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:
|
||||
return None
|
||||
|
||||
@property
|
||||
def job_status(self):
|
||||
if not self.current_job:
|
||||
return None
|
||||
return self.current_job.result.status
|
||||
|
||||
@property
|
||||
def workload(self):
|
||||
return getattr(self.spec, 'workload', None)
|
||||
|
Loading…
x
Reference in New Issue
Block a user