mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
16 lines
428 B
TypeScript
16 lines
428 B
TypeScript
|
import {TaskProgressDTO} from '../../../common/entities/settings/TaskProgressDTO';
|
||
|
import {TaskScheduleDTO} from '../../../common/entities/task/TaskScheduleDTO';
|
||
|
import {TaskDTO} from '../../../common/entities/task/TaskDTO';
|
||
|
|
||
|
export interface ITaskManager {
|
||
|
|
||
|
start(taskId: string, config: any): void;
|
||
|
|
||
|
stop(taskId: string): void;
|
||
|
|
||
|
getProgresses(): { [key: string]: TaskProgressDTO };
|
||
|
|
||
|
|
||
|
getAvailableTasks(): TaskDTO[];
|
||
|
}
|