[Tilesathome] Active queue

Matthias Julius lists at julius-net.net
Thu Jul 5 14:24:44 BST 2007


"Martijn van Oosterhout" <kleptog at gmail.com> writes:

> Perhaps we should temporarily get rid of the 6 hours requeue setup (or
> extend it to like a few days) so that we can get a better idea of how
> much work is actually being acheived...

The following (simple) patch changes the Run script to also clear jobs
from "new" (untested).  With the current length of "new" there is
probably a good chance that a job is uploaded before it is assigned
again to another client.

Matthias

--- index.php   (revision 3493)
+++ index.php   (working copy)
@@ -228,6 +228,7 @@
     list($X, $Y, $Z, $Layer, $Type) = explode(",", $SqlSnippet);
     if($Z == 12){
       moveRequest($X, $Y, REQUEST_ACTIVE, REQUEST_DONE, 0);
+      moveRequest($X, $Y, REQUEST_NEW, REQUEST_DONE, 0);
     }

     # Make a blank tile
@@ -279,6 +280,7 @@
   SaveUserStats($UserID, $VersionID, 1365);

   moveRequest($X, $Y, REQUEST_ACTIVE, REQUEST_DONE, 0);
+  moveRequest($X, $Y, REQUEST_NEW, REQUEST_DONE, 0);

   $LayerID = checkLayer($Layer);

@@ -302,7 +304,8 @@
     if($Z == 12){

       moveRequest($X, $Y, REQUEST_ACTIVE, REQUEST_DONE, 0);
-
+      moveRequest($X, $Y, REQUEST_NEW, REQUEST_DONE, 0);
+
       #logMsg(sprintf("Moving tile %d, %d from %d to %d", $X, $Y, REQUEST_ACTIVE, REQUEST_DONE), 4);
       logSqlError();
     }





More information about the Tilesathome mailing list