From 493a33b942d8de22e2af974774fc9c5539e65edb Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Thu, 26 Oct 2023 14:27:21 +0800 Subject: [PATCH] fix(komga): FixThumbnailsWithoutMetadata could not rerun itself --- .../main/kotlin/org/gotson/komga/application/tasks/Task.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/komga/src/main/kotlin/org/gotson/komga/application/tasks/Task.kt b/komga/src/main/kotlin/org/gotson/komga/application/tasks/Task.kt index 84924e443..c83866fd1 100644 --- a/komga/src/main/kotlin/org/gotson/komga/application/tasks/Task.kt +++ b/komga/src/main/kotlin/org/gotson/komga/application/tasks/Task.kt @@ -4,6 +4,7 @@ import org.gotson.komga.domain.model.BookMetadataPatchCapability import org.gotson.komga.domain.model.BookPageNumbered import org.gotson.komga.domain.model.CopyMode import org.gotson.komga.infrastructure.search.LuceneEntity +import java.time.LocalDateTime const val HIGHEST_PRIORITY = 8 const val HIGH_PRIORITY = 6 @@ -125,8 +126,8 @@ sealed class Task(val priority: Int = DEFAULT_PRIORITY, val groupId: String? = n override fun toString(): String = "DeleteSeries(seriesId='$seriesId', priority='$priority')" } - class FixThumbnailsWithoutMetadata(priority: Int = DEFAULT_PRIORITY) : Task(priority) { - override val uniqueId = "FIX_THUMBNAILS_WITHOUT_METADATA" + class FixThumbnailsWithoutMetadata(priority: Int = DEFAULT_PRIORITY) : Task(priority, "FixThumbnailsWithoutMetadata") { + override val uniqueId = "FIX_THUMBNAILS_WITHOUT_METADATA_${LocalDateTime.now()}" override fun toString(): String = "FixThumbnailsWithoutMetadata(priority='$priority')" }