mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2025-12-30 17:39:03 -05:00
14 lines
528 B
C#
14 lines
528 B
C#
using Cleanuparr.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);
|
|
} |