diff --git a/backend/src/main/kotlin/dev/dres/data/model/run/NonInteractiveEvaluation.kt b/backend/src/main/kotlin/dev/dres/data/model/run/NonInteractiveEvaluation.kt index 60a7302c..6fb0ea99 100644 --- a/backend/src/main/kotlin/dev/dres/data/model/run/NonInteractiveEvaluation.kt +++ b/backend/src/main/kotlin/dev/dres/data/model/run/NonInteractiveEvaluation.kt @@ -73,6 +73,7 @@ class NonInteractiveEvaluation(store: TransientEntityStore, evaluation: DbEvalua DbScoreOption.KIS -> throw IllegalStateException("KIS task scorer is not applicable to non-interactive evaluations") DbScoreOption.AVS -> AvsTaskScorer(this, store) DbScoreOption.LEGACY_AVS -> LegacyAvsTaskScorer(this, store) + DbScoreOption.NOOP -> NoOpTaskScorer(this) else -> throw IllegalStateException("The task score option $scoreOption is currently not supported.") } ) } diff --git a/backend/src/main/kotlin/dev/dres/run/score/scorer/KisTaskScorer.kt b/backend/src/main/kotlin/dev/dres/run/score/scorer/KisTaskScorer.kt index 2fcd209b..643f8494 100644 --- a/backend/src/main/kotlin/dev/dres/run/score/scorer/KisTaskScorer.kt +++ b/backend/src/main/kotlin/dev/dres/run/score/scorer/KisTaskScorer.kt @@ -16,10 +16,6 @@ class KisTaskScorer( store: TransientEntityStore? ) : AbstractTaskScorer(scoreable, store) { - init { - require(scoreable.duration != null){"Cannot create a KisTaskScorer for perpetual task '${scoreable.taskId}'"} - } - constructor(run: TaskRun, parameters: Map, store: TransientEntityStore?) : this( run, parameters.getOrDefault("maxPointsPerTask", "$defaultmaxPointsPerTask").toDoubleOrNull() ?: defaultmaxPointsPerTask,