mirror of
https://github.com/sismics/docs.git
synced 2025-12-13 01:36:18 +00:00
Closes #219: button to force full reindexing
This commit is contained in:
@@ -63,5 +63,9 @@ public class RebuildIndexAsyncListener {
|
||||
offset += 100;
|
||||
} while (fileList.size() > 0);
|
||||
});
|
||||
|
||||
if (log.isInfoEnabled()) {
|
||||
log.info("Rebuilding index done");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -190,7 +190,7 @@ public class AppContext {
|
||||
public int getQueuedTaskCount() {
|
||||
int queueSize = 0;
|
||||
for (ThreadPoolExecutor executor : asyncExecutorList) {
|
||||
queueSize += executor.getQueue().size();
|
||||
queueSize += executor.getTaskCount() - executor.getCompletedTaskCount();
|
||||
}
|
||||
return queueSize;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user