From 0f9331dafe7063cd9f2d5e7de07a0381ae313c13 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Fri, 17 Jan 2020 16:49:22 +0000 Subject: [PATCH] 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.) --- wa/framework/job.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wa/framework/job.py b/wa/framework/job.py index 127da658..94d0f95e 100644 --- a/wa/framework/job.py +++ b/wa/framework/job.py @@ -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