-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Query and monitor if we have skipped any scheduled jobs #15256
Conversation
@@ -148,4 +148,44 @@ public static List<Pair<JobStatus, Double>> overallJobRuntimeForTerminalJobsInLa | |||
return pairedRes; | |||
} | |||
|
|||
public static Long numOfJobsNotRunningOnSchedule(final DSLContext ctx) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we have any kind of testing for these queries?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not in unit test I'm afraid... but I ran these manually on dbeaver.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, should we add a comment about what our logic is for determining if a job run was missed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sense. I have a runbook coming in https://github.com/airbytehq/airbyte-cloud/pull/2272; I'll add a short summary here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh ok perfect, thanks!
What
https://github.com/airbytehq/airbyte-cloud/issues/2225
Monitor if we have skipped any scheduled jobs