[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/icecream/icecream/services
From:       Stephan Kulow <coolo () kde ! org>
Date:       2005-12-09 10:23:53
Message-ID: 1134123833.951448.24670.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 486992 by coolo:

ease debugging


 M  +18 -10    scheduler.cpp  


--- trunk/kdenonbeta/icecream/icecream/services/scheduler.cpp #486991:486992
@@ -680,21 +680,21 @@
         continue;
       }
 
+      /* Servers that are already compiling jobs but got no environments
+         are currently installing new environments - ignore so far */
+      if ( cs->joblist.size() != 0 && cs->compiler_versions.size() == 0 ) {
+        trace() << cs->nodename << " is currently installing\n";
+        continue;
+      }
+
       // incompatible architecture
       if ( !can_install( cs, job ).size() ) {
-#if DEBUG_SCHEDULER > 1
+#if DEBUG_SCHEDULER > 2
         trace() << cs->nodename << " can't install " << job->id << endl;
 #endif
         continue;
       }
 
-      /* Servers that are already compiling jobs but got no environments
-         are currently installing new environments - ignore so far */
-      if ( cs->joblist.size() != 0 && cs->compiler_versions.size() == 0 ) {
-        trace() << cs->nodename << " is currently installing\n";
-        continue;
-      }
-
       /* Don't use non-chroot-able daemons for remote jobs.  XXX */
       if (!allow_run_as_user && !cs->chroot_possible)
         {
@@ -854,7 +854,15 @@
            /* This should be trivially true.  */
            && can_install (cs, job).size()))
       {
-        trace() << " and failed\n";
+        trace() << " and failed ";
+	
+#if DEBUG_SCHEDULER > 1
+        list<UnansweredList*>::iterator it;
+        for (it = toanswer.begin(); it != toanswer.end(); ++it)
+		trace() << (*it)->server->nodename << " ";
+#endif
+	trace() << endl;
+
         job = delay_current_job();
         if ( job == first_job || !job ) // no job found in the whole toanswer list
           return false;
@@ -1698,7 +1706,7 @@
     {
       while (empty_queue())
 	continue;
-
+	
       fd_set read_set;
       int max_fd = 0;
       FD_ZERO (&read_set);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic