started on #646. Fixed #657

This commit is contained in:
Jamie.Rees 2016-11-14 10:44:10 +00:00
commit 05bdfcd550
16 changed files with 70 additions and 4 deletions

View file

@ -53,6 +53,7 @@ namespace PlexRequests.Services.Jobs
public void Execute(IJobExecutionContext context)
{
JobRecord.SetRunning(true, JobNames.CpCacher);
TakeBackup();
Cleanup();
}
@ -91,6 +92,7 @@ namespace PlexRequests.Services.Jobs
finally
{
JobRecord.Record(JobNames.StoreBackup);
JobRecord.SetRunning(false, JobNames.CpCacher);
}
}