fix #1122 change thumbnailTaskQueueTimeout to 10sec

This commit is contained in:
Shinsuke Sugaya 2017-06-22 15:03:38 +09:00
parent 3ff6064c2c
commit 46e124e1a1

View file

@ -82,7 +82,7 @@ public class ThumbnailManager {
protected int thumbnailTaskBulkSize = 100;
protected long thumbnailTaskQueueTimeout = 30 * 1000L;
protected long thumbnailTaskQueueTimeout = 10 * 1000L;
protected long noImageExpired = 24 * 60 * 60 * 1000L; // 24 hours
@ -130,9 +130,8 @@ public class ThumbnailManager {
}
}
} catch (final InterruptedException e) {
logger.debug("Interupted task.", e);
if (!taskList.isEmpty()) {
storeQueue(taskList);
if (logger.isDebugEnabled()) {
logger.debug("Interupted task.", e);
}
} catch (final Exception e) {
if (generating) {