• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Nikorag / iplayarr / 14751376880

30 Apr 2025 09:30AM UTC coverage: 45.05% (+3.3%) from 41.731%
14751376880

push

github

web-flow
Merge pull request #127 from Nikorag/126-native-schedule

Schedule Facade and Native Schedule Service

226 of 574 branches covered (39.37%)

Branch coverage included in aggregate %.

117 of 127 new or added lines in 12 files covered. (92.13%)

2 existing lines in 2 files now uncovered.

866 of 1850 relevant lines covered (46.81%)

6.06 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/service/taskService.ts
1
import cron from 'node-cron';
×
2

3
import downloadFacade from '../facade/downloadFacade';
×
NEW
4
import scheduleFacade from '../facade/scheduleFacade';
×
5
import { IplayarrParameter } from '../types/IplayarrParameters';
×
6
import configService from './configService';
×
7
import episodeCacheService from './episodeCacheService';
×
8

9

10
class TaskService {
11
    init(){
12
        configService.getParameter(IplayarrParameter.REFRESH_SCHEDULE).then((cronSchedule) => {
×
13
            cron.schedule(cronSchedule as string, async () => {
×
14
                const nativeSearchEnabled = await configService.getParameter(IplayarrParameter.NATIVE_SEARCH);
×
NEW
15
                scheduleFacade.refreshCache().then(() => {
×
NEW
16
                    if (nativeSearchEnabled == 'false') {
×
NEW
17
                        episodeCacheService.recacheAllSeries();
×
18
                    }
19
                });
20
                downloadFacade.cleanupFailedDownloads();
×
21
            });
22
        });
23
    }
24
}
25

26
export default new TaskService();
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc