1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-22 21:08:51 +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:
Sergei Trofimov 2020-01-17 16:49:22 +00:00 committed by Marc Bonnici
parent 659e60414f
commit 0f9331dafe

View File

@ -37,10 +37,6 @@ class Job(object):
def label(self): def label(self):
return self.spec.label return self.spec.label
@property
def classifiers(self):
return self.spec.classifiers
@property @property
def status(self): def status(self):
return self._status return self._status
@ -64,6 +60,7 @@ class Job(object):
self.output = None self.output = None
self.run_time = None self.run_time = None
self.retries = 0 self.retries = 0
self.classifiers = copy(self.spec.classifiers)
self._has_been_initialized = False self._has_been_initialized = False
self._status = Status.NEW self._status = Status.NEW