Skip to content

Commit

Permalink
Bug Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshathSai committed May 17, 2024
1 parent f7e7170 commit fb2f748
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import java.util.ArrayList;
import java.util.List;

@Async
@Slf4j
@Service
public class BackgroundServices {
Expand All @@ -42,6 +41,7 @@ public class BackgroundServices {
@Autowired
private TorrentDownloadService torrentDownloadService;

@Async
@EventListener(ApplicationReadyEvent.class)
public void onApplicationReadyEvent() {

Expand All @@ -60,7 +60,8 @@ public void onApplicationReadyEvent() {

}

private void startBackgroundDownloads() {
@Async
public void startBackgroundDownloads() {

Specification<DownloadTask> spec = DownloadTaskSpecs.hasTaskStatusIn(STATUS.RETRY, STATUS.NEW);
List<DownloadTask> downloadTasks = new ArrayList<>(downloadTasksRepo.findAll(spec));
Expand Down

0 comments on commit fb2f748

Please sign in to comment.