mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-02-23 18:07:26 -05:00
14 lines
480 B
C#
14 lines
480 B
C#
using Infrastructure.Models;
|
|
|
|
namespace Infrastructure.Services.Interfaces;
|
|
|
|
public interface IJobManagementService
|
|
{
|
|
Task<bool> StartJob(JobType jobType, JobSchedule? schedule = null);
|
|
Task<bool> StopJob(JobType jobType);
|
|
Task<bool> PauseJob(JobType jobType);
|
|
Task<bool> ResumeJob(JobType jobType);
|
|
Task<IReadOnlyList<JobInfo>> GetAllJobs();
|
|
Task<JobInfo> GetJob(JobType jobType);
|
|
Task<bool> UpdateJobSchedule(JobType jobType, JobSchedule schedule);
|
|
} |