Code

Make new queue items in gotomasses appear instant
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 10 Jun 2009 12:33:01 +0000 (12:33 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 10 Jun 2009 12:33:01 +0000 (12:33 +0000)
Sleep a second, before reloading the list of queued
jobs, to avoid timing issues when adding new queue entries,
that are not listed, immediately after they've been added,
because gosa-si appearently needs some time to process it.
(Trac: #2658)

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13702 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-plugins/goto/addons/goto/class_gotomasses.inc

index ad278eaba61f3fdd86377e58ecb2e57f82980c2a..a953833a490f1959a0f387586fb962daa85c9f69 100644 (file)
@@ -807,7 +807,10 @@ class gotomasses extends plugin
         $sort.= " DESC";
       }
     }
-     
+
+    /* Sleep a second to avoid timing issues when adding new items */
+    sleep(1);
+
     /* Get entries. */ 
     $start  = $this->start; 
     $stop   = $this->range;