mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-21 21:26:16 +00:00
avoid calling CheckpointService.hasAvailableCheckpoints() when crawl not launchable and therefore the info is not needed, because it calls isRunning() which is synchronized and blocks when checkpoint is in progress
This commit is contained in:
@@ -127,7 +127,7 @@ public class CrawlJobModel extends LinkedHashMap<String, Object> implements Seri
|
||||
|
||||
List<String> checkpointFiles = new ArrayList<String>();
|
||||
if (crawlJob.getCheckpointService() != null) {
|
||||
if (crawlJob.getCheckpointService().hasAvailableCheckpoints() && crawlJob.isLaunchable()) {
|
||||
if (crawlJob.isLaunchable() && crawlJob.getCheckpointService().hasAvailableCheckpoints()) {
|
||||
for (File f : crawlJob.getCheckpointService().findAvailableCheckpointDirectories()) {
|
||||
checkpointFiles.add(f.getName());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user