[9.1] [Response Ops][Reporting] Get next run time from task instance in scheduled report list API (#233912)#248074
Merged
ymao1 merged 1 commit intoelastic:9.1from Jan 7, 2026
Merged
Conversation
…eduled report list API (elastic#233912) Resolves elastic#228059 ## Summary Currently, the `list` API for scheduled reports dynamically calculates the next run time using the current time and the task rrule schedule. Sometimes that can lead to discrepancies in the next run that's shown vs the actual next run date. This PR updates the API to perform a `bulkGet` on the task instance and use the actual `runAt` time as the next run time. This should fallback to using the dynamic calculation if there are any errors getting the task instance. Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit 0eaccf8) # Conflicts: # x-pack/platform/plugins/private/reporting/server/routes/common/scheduled/scheduled_query.test.ts # x-pack/platform/plugins/private/reporting/server/routes/common/scheduled/scheduled_query.ts
Contributor
💚 Build Succeeded
Metrics [docs]
|
cnasikas
approved these changes
Jan 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
mainto9.1:Questions ?
Please refer to the Backport tool documentation