mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-31 04:04:19 -04:00
* 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
23 lines
721 B
C#
23 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();
|
|
}
|
|
}
|