This commit is contained in:
2023-03-20 19:00:24 +08:00
parent 30f69ca188
commit f7e2090b1e
@@ -58,7 +58,7 @@ class BigdataForsaleBatch extends BaseBatch{
}
public static final String[] TAGS = ["独栋", "联排", "叠加", "双拼", "花园面积", "泳池", "别墅", "带花园", "洋房", "叠拼", "独院", "联体", "微墅", "大平墅"];
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(1)
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(60)
public static ExecutorService fixedThreadPool2 = Executors.newFixedThreadPool(200)
@@ -153,8 +153,8 @@ class BigdataForsaleBatch extends BaseBatch{
for(def i=0;i<districts.size();i++){
final def rMap = districts[i];
// fixedThreadPool.execute(new Runnable() {
// void run() {
fixedThreadPool.execute(new Runnable() {
void run() {
try {
totalCount.addAndGet(1)
def commId = rMap.get("_id").toString()
@@ -210,8 +210,8 @@ class BigdataForsaleBatch extends BaseBatch{
} finally {
latch.countDown()
}
// };
// })
};
})
}
latch.await()
return retMap