Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inspector - Data Collection , schedules missing #303

Open
markwdavies opened this issue May 30, 2022 · 0 comments
Open

Inspector - Data Collection , schedules missing #303

markwdavies opened this issue May 30, 2022 · 0 comments

Comments

@markwdavies
Copy link

Missing Data collections

If the Inspector Collection Script is not run every minute it can miss scheduled modules.
This is due to the way the View [Inspector].[ModuleSchedulesDue] only retrieves collections due in the current minute

To Reproduce

Set the Powershell Inspector script to run every 15 minutes starting on the hour , if a module's schedule is set to frequency 60 mins starting 5 past the hour, only the initial collection will happen , subsequent runs will be missed.

To Fix

This can be resolved by amending the final condition of the where clause in the view [Inspector].[ModuleSchedulesDue] currently it checks "if no run has occurred (NULL) OR if the last run is before the start time for today"

This needs to be extended to include any scheduled times missed since the last run which can be done by amending it as follows :

OR (LastRunDateTime IS NULL OR LastRunDateTime < Schedules.StartDatetime OR LastRunDateTime < DATEADD(MINUTE,-Frequency,DATEADD(MINUTE,RowNum,Schedules.StartDatetime)) ))

Adedba added a commit that referenced this issue Oct 17, 2023
#303 Include missed collections
@Adedba Adedba assigned Adedba and markwdavies and unassigned Adedba Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants