Improve Arctool rebuild facility 12, a=chris

Chris Pollett [2022-01-12 21:Jan:th]
Improve Arctool rebuild facility 12, a=chris
Filename
src/executables/ArcTool.php
diff --git a/src/executables/ArcTool.php b/src/executables/ArcTool.php
index 76ae1fd8c..d84975e62 100755
--- a/src/executables/ArcTool.php
+++ b/src/executables/ArcTool.php
@@ -1077,6 +1077,7 @@ EOD;
         $old_next_partition = -1;
         $next_partition = $start_generation;
         $continue = false;
+        $dictionary_log = C\LOG_DIR . "/0-DictionaryUpdater.log";
         while ($next_partition < $save_partition) {
             if ($old_next_partition != $next_partition) {
                 $old_next_partition = $next_partition;
@@ -1089,7 +1090,13 @@ EOD;
                 L\crawlLog(".. Still Processing Partition: $next_partition");
                 L\crawlLog(
                     "..Waiting for DictionaryUpdater to process partition");
-                sleep(5);
+                if (file_exists($dictionary_log)) {
+                    $recent_log_data = file_get_contents($dictionary_log);
+                    echo $recent_log_data;
+                    $fp = fopen($dictionary_log, "w");
+                    fclose($fp);
+                }
+                sleep(10);
             }
             $next_partition =
                 intval(file_get_contents($next_partition_path));
ViewGit