Skip to content

Commit

Permalink
Do not start scheduler from TaskLogic. Fixes #124
Browse files Browse the repository at this point in the history
  • Loading branch information
geirsagberg committed Nov 8, 2024
1 parent 6b12a14 commit d529b2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public class TaskLogic {

public TaskLogic(Scheduler scheduler, Caching caching, boolean showData) {
this.scheduler = scheduler;
this.scheduler.start();
this.caching = caching;
this.showData = showData;
}
Expand Down Expand Up @@ -128,12 +127,12 @@ public GetTasksResponse getTask(TaskDetailsRequestParams params) {
List<TaskModel> tasks =
params.getTaskId() != null
? TaskMapper.mapAllExecutionsToTaskModelUngrouped(executions).stream()
.filter(
task -> {
return task.getTaskName().equals(params.getTaskName())
&& task.getTaskInstance().get(0).equals(params.getTaskId());
})
.collect(Collectors.toList())
.filter(
task -> {
return task.getTaskName().equals(params.getTaskName())
&& task.getTaskInstance().get(0).equals(params.getTaskId());
})
.collect(Collectors.toList())
: TaskMapper.mapAllExecutionsToTaskModelUngrouped(executions).stream()
.filter(
task -> {
Expand Down
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@
</resources>
</configuration>
</execution>

</executions>
</plugin>
</plugins>
Expand Down

0 comments on commit d529b2b

Please sign in to comment.