diff --git a/Source/Quartzmin/Controllers/SchedulerController.cs b/Source/Quartzmin/Controllers/SchedulerController.cs index 5765633..6ad4529 100644 --- a/Source/Quartzmin/Controllers/SchedulerController.cs +++ b/Source/Quartzmin/Controllers/SchedulerController.cs @@ -31,11 +31,19 @@ namespace Quartzmin.Controllers var jobKeys = await Scheduler.GetJobKeys(GroupMatcher.AnyGroup()); var triggerKeys = await Scheduler.GetTriggerKeys(GroupMatcher.AnyGroup()); var currentlyExecutingJobs = await Scheduler.GetCurrentlyExecutingJobs(); - var pausedJobGroups = await GetGroupPauseState(await Scheduler.GetJobGroupNames(), async x => await Scheduler.IsJobGroupPaused(x)); - var pausedTriggerGroups = await GetGroupPauseState(await Scheduler.GetTriggerGroupNames(), async x => await Scheduler.IsTriggerGroupPaused(x)); - + IEnumerable pausedJobGroups = null; + IEnumerable pausedTriggerGroups = null; IEnumerable execHistory = null; + try + { + pausedJobGroups = await GetGroupPauseState(await Scheduler.GetJobGroupNames(), async x => await Scheduler.IsJobGroupPaused(x)); + } catch (NotImplementedException) { } + + try { + pausedTriggerGroups = await GetGroupPauseState(await Scheduler.GetTriggerGroupNames(), async x => await Scheduler.IsTriggerGroupPaused(x)); + } catch (NotImplementedException) { } + int? failedJobs = null; int executedJobs = metadata.NumberOfJobsExecuted;