Fix task execution: Set TaskPriority.HIGH for subtasks of multi threaded peak finder gap fill
@@ -40,6 +40,7 @@ import io.github.mzmine.parameters.ParameterSet;
import io.github.mzmine.parameters.parametertypes.tolerances.MZTolerance;
import io.github.mzmine.parameters.parametertypes.tolerances.RTTolerance;
import io.github.mzmine.taskcontrol.AbstractTask;
+import io.github.mzmine.taskcontrol.TaskPriority;
import io.github.mzmine.taskcontrol.TaskStatus;
import io.github.mzmine.util.IonMobilityUtils;
import java.time.Instant;
@@ -162,6 +163,11 @@ class MultiThreadPeakFinderTask extends AbstractTask {
setStatus(TaskStatus.FINISHED);
}
+ @Override
+ public TaskPriority getTaskPriority() {
+ return TaskPriority.HIGH;
+ }
+
public double getFinishedPercentage() {
if (totalScans == 0) {
return 0;
