Skip to content
Snippets Groups Projects
Commit 79db73b1 authored by Jan Kožusznik's avatar Jan Kožusznik
Browse files

fix: done task should not be in queue state

parent e3b3246b
No related branches found
No related tags found
No related merge requests found
......@@ -185,7 +185,8 @@ public class TaskComputation {
// Should the state be queued, try to find out whether a log file exists
if (state == JobState.Queued) {
if (null != logs && !logs.stream().anyMatch(logFile -> computationAccessor.fileExists(logFile))) {
if (!taskDescription.equals(Constants.DONE_TASK) && null != logs
&& !logs.stream().anyMatch(logFile -> computationAccessor.fileExists(logFile))) {
return; // No log file exists yet
}
state = JobState.Running;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment