1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-12 11:15:43 +02:00

Merge branch 'markus101'

This commit is contained in:
kay.one 2011-05-17 19:55:01 -07:00
commit 356650a1d3

View File

@ -241,8 +241,11 @@ private void Execute(Type jobType, int targetId = 0)
_notificationProvider.Register(_notification);
jobImplementation.Start(_notification, targetId);
_notification.Status = ProgressNotificationStatus.Completed;
settings.LastExecution = DateTime.Now;//TODO: Should only be updated if targetId is 0.
settings.Success = true;
if (targetId != 0)
settings.LastExecution = DateTime.Now;
settings.Success = true; //TODO: Do we consider a job with a targetId as successful?
sw.Stop();
Logger.Debug("Job '{0}' successfully completed in {1} seconds", jobImplementation.Name, sw.Elapsed.Minutes,
sw.Elapsed.Seconds);