mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-04-19 14:53:20 +02:00
29 lines
829 B
TypeScript
29 lines
829 B
TypeScript
export default interface IJob{
|
|
jobId: string;
|
|
parentJobId: string;
|
|
dependsOnJobIds: string[];
|
|
jobType: JobType;
|
|
recurrenceMs: number;
|
|
lastExecution: Date;
|
|
nextExecution: Date;
|
|
state: JobState;
|
|
enabled: boolean;
|
|
}
|
|
|
|
export enum JobType {
|
|
DownloadSingleChapterJob = "DownloadSingleChapterJob",
|
|
DownloadAvailableChaptersJob = "DownloadAvailableChaptersJob",
|
|
UpdateMetaDataJob = "UpdateMetaDataJob",
|
|
MoveFileOrFolderJob = "MoveFileOrFolderJob",
|
|
DownloadMangaCoverJob = "DownloadMangaCoverJob",
|
|
RetrieveChaptersJob = "RetrieveChaptersJob",
|
|
UpdateFilesDownloadedJob = "UpdateFilesDownloadedJob",
|
|
MoveMangaLibraryJob = "MoveMangaLibraryJob"
|
|
}
|
|
|
|
export enum JobState {
|
|
Waiting = "Waiting",
|
|
Running = "Running",
|
|
Completed = "Completed",
|
|
Failed = "Failed"
|
|
} |