[copr] skvidal-backend: add some more logging - trying to figure out why the mockremote call is failing (81c2267)

skvidal at fedorahosted.org skvidal at fedorahosted.org
Fri Nov 16 20:05:28 UTC 2012


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : skvidal-backend

>---------------------------------------------------------------

commit 81c2267ca82c9f94f36dc534c472e190a92b4168
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Fri Nov 16 15:03:25 2012 -0500

    add some more logging - trying to figure out why the mockremote call is failing


>---------------------------------------------------------------

 backend/dispatcher.py |    2 +-
 copr-be.py            |    4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/backend/dispatcher.py b/backend/dispatcher.py
index 0fc1ada..cd387da 100644
--- a/backend/dispatcher.py
+++ b/backend/dispatcher.py
@@ -175,7 +175,7 @@ class Worker(multiprocessing.Process):
             status = 1
             job.started_on = time.time()
             for chroot in job.chroots:
-                self.callback.log('mockremote on %s - %s' % (ip, jobfile))
+                self.callback.log('mockremote %s %s %s %s %s' % (ip, job.timeout, job.destdir, chroot, str(repos)))
                 try:
                     mr = mockremote.MockRemote(builder=ip, timeout=job.timeout, 
                          destdir=job.destdir, chroot=chroot, cont=True, recurse=True,
diff --git a/copr-be.py b/copr-be.py
index 2d2df43..7ebc4c4 100644
--- a/copr-be.py
+++ b/copr-be.py
@@ -97,7 +97,7 @@ class CoprBackend(object):
                     self.log('adding %s' % n)
             
             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
@@ -116,8 +116,6 @@ class CoprBackend(object):
                 # FIXME - if a worker bombs out - we need to check them
                 # and startup a new one if it happens
         
-            self.log("# jobs in queue: %s" % self.jobs.qsize())
-
             time.sleep(self.opts.sleeptime)
 
     



More information about the copr-devel mailing list