[copr] skvidal-backend: move the config reread out of the queuesize change - so we know it will happen in the loop even when no jobs are happening (00ccbef)
skvidal at fedoraproject.org
skvidal at fedoraproject.org
Thu Dec 6 07:21:08 UTC 2012
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : skvidal-backend
>---------------------------------------------------------------
commit 00ccbefe32ed5a4f5827e4d7831a85f4752d597e
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Thu Dec 6 02:18:49 2012 -0500
move the config reread out of the queuesize change - so we know it will happen in the loop
even when no jobs are happening
>---------------------------------------------------------------
copr-be.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/copr-be.py b/copr-be.py
index e5128d9..6564134 100644
--- a/copr-be.py
+++ b/copr-be.py
@@ -134,10 +134,11 @@ class CoprBackend(object):
self.added_jobs.append(n)
self.log('adding to work queue id %s' % n)
+ # re-read config into opts
+ self.opts = self.read_conf()
+
if self.jobs.qsize():
self.log("# jobs in queue: %s" % self.jobs.qsize())
- # re-read config into opts
- self.opts = self.read_conf()
# this handles starting/growing the number of workers
if len(self.workers) < self.opts.num_workers:
self.log("Spinning up more workers for jobs")
More information about the copr-devel
mailing list