|
|
@ -24,7 +24,7 @@
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
import time, sys, os, shutil, subprocess, distutils.dir_util, multiprocessing
|
|
|
|
import time, sys, os, shutil, subprocess, distutils.dir_util
|
|
|
|
sys.path.append("../../configuration")
|
|
|
|
sys.path.append("../../configuration")
|
|
|
|
|
|
|
|
|
|
|
|
if os.path.isfile("log.log"):
|
|
|
|
if os.path.isfile("log.log"):
|
|
|
@ -226,8 +226,6 @@ else:
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
printLog(log, "SKIP " + lr1)
|
|
|
|
printLog(log, "SKIP " + lr1)
|
|
|
|
while len(zonesToBuild) > 0:
|
|
|
|
while len(zonesToBuild) > 0:
|
|
|
|
procs = []
|
|
|
|
|
|
|
|
for i in range(0, multiprocessing.cpu_count()):
|
|
|
|
|
|
|
|
processCommand = [ ExecTimeout, str(RbankBuildTesselTimeout), BuildRbank, "-c", "-P", "-g" ]
|
|
|
|
processCommand = [ ExecTimeout, str(RbankBuildTesselTimeout), BuildRbank, "-c", "-P", "-g" ]
|
|
|
|
processCommand.extend(zonesToBuild[:min(len(zonesToBuild), 64)])
|
|
|
|
processCommand.extend(zonesToBuild[:min(len(zonesToBuild), 64)])
|
|
|
|
if len(zonesToBuild) > 64:
|
|
|
|
if len(zonesToBuild) > 64:
|
|
|
@ -235,11 +233,8 @@ else:
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
zonesToBuild = []
|
|
|
|
zonesToBuild = []
|
|
|
|
print processCommand
|
|
|
|
print processCommand
|
|
|
|
print len(processCommand)
|
|
|
|
callParallelProcess(processCommand)
|
|
|
|
proc = subprocess.Popen(processCommand)
|
|
|
|
flushParallelProcesses()
|
|
|
|
procs.append(proc)
|
|
|
|
|
|
|
|
for proc in procs:
|
|
|
|
|
|
|
|
proc.wait()
|
|
|
|
|
|
|
|
printLog(log, "")
|
|
|
|
printLog(log, "")
|
|
|
|
|
|
|
|
|
|
|
|
printLog(log, ">>> Detect modifications to rebuild lr <<<")
|
|
|
|
printLog(log, ">>> Detect modifications to rebuild lr <<<")
|
|
|
|