Files
Cleanuparr/code/Infrastructure/Services/Interfaces/IJobManagementService.cs
2025-06-01 18:37:58 +03:00

14 lines
517 B
C#

using Infrastructure.Models;
namespace Infrastructure.Services.Interfaces;
public interface IJobManagementService
{
Task<bool> StartJob(JobType jobType, JobSchedule? schedule = null, string? directCronExpression = 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);
}