
* Fixed opds url display * Rewrote how stat collection works, now we check in multiple places and always run stat collection in a background thread, to not block main thread. * Cleaned up the ParseInfoTest to be more verbose * Added benchmarking
22 lines
721 B
C#
22 lines
721 B
C#
using System.Threading.Tasks;
|
|
|
|
namespace API.Interfaces
|
|
{
|
|
public interface ITaskScheduler
|
|
{
|
|
/// <summary>
|
|
/// For use on Server startup
|
|
/// </summary>
|
|
void ScheduleTasks();
|
|
Task ScheduleStatsTasks();
|
|
void ScheduleUpdaterTasks();
|
|
void ScanLibrary(int libraryId, bool forceUpdate = false);
|
|
void CleanupChapters(int[] chapterIds);
|
|
void RefreshMetadata(int libraryId, bool forceUpdate = true);
|
|
void CleanupTemp();
|
|
void RefreshSeriesMetadata(int libraryId, int seriesId);
|
|
void ScanSeries(int libraryId, int seriesId, bool forceUpdate = false);
|
|
void CancelStatsTasks();
|
|
void RunStatCollection();
|
|
}
|
|
}
|