mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-21 04:18:58 +00:00
fw/job: copy classifiers from the spec
Now that classifiers may be added to the job during execution, its classifiers dict should be unique to each job rather than just returning them form spec (which may be shared between multiple jobs.)
This commit is contained in:
parent
659e60414f
commit
0f9331dafe
@ -37,10 +37,6 @@ class Job(object):
|
||||
def label(self):
|
||||
return self.spec.label
|
||||
|
||||
@property
|
||||
def classifiers(self):
|
||||
return self.spec.classifiers
|
||||
|
||||
@property
|
||||
def status(self):
|
||||
return self._status
|
||||
@ -64,6 +60,7 @@ class Job(object):
|
||||
self.output = None
|
||||
self.run_time = None
|
||||
self.retries = 0
|
||||
self.classifiers = copy(self.spec.classifiers)
|
||||
self._has_been_initialized = False
|
||||
self._status = Status.NEW
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user