Skip to content

Comments

[Response Ops][Reporting][Task Manager] Allow setting dtstart in rrule schedule#224948

Merged
ymao1 merged 10 commits intoelastic:mainfrom
ymao1:scheduled-report-tm-started-at
Jul 1, 2025
Merged

[Response Ops][Reporting][Task Manager] Allow setting dtstart in rrule schedule#224948
ymao1 merged 10 commits intoelastic:mainfrom
ymao1:scheduled-report-tm-started-at

Conversation

@ymao1
Copy link
Contributor

@ymao1 ymao1 commented Jun 23, 2025

Summary

  • Updates task manager rrule schedule to allow for specifying an optional dtstart date time. Task manager will use this to calculate the first runAt for a recurring task (if defined). Each subsequent runAt will continue to be calculated based on the previous runAt time.
  • Updates scheduled reporting API to use this ability.

Intermediate release PR for schema changes only: https://github.com/elastic/kibana/pull/224979/files

@ymao1 ymao1 force-pushed the scheduled-report-tm-started-at branch from 34ab1df to 02b780f Compare June 23, 2025 19:38
@ymao1 ymao1 changed the title Scheduled report tm started at [Response Ops][Reporting][Task Manager] Allow setting dtstart in rrule schedule Jun 23, 2025
@ymao1 ymao1 self-assigned this Jun 25, 2025
@ymao1 ymao1 added release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// Feature:Reporting:Framework Reporting issues pertaining to the overall framework backport:version Backport to applied version labels v9.1.0 v8.19.0 v9.2.0 labels Jun 25, 2025
@ymao1 ymao1 marked this pull request as ready for review June 25, 2025 17:18
@ymao1 ymao1 requested review from a team as code owners June 25, 2025 17:18
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@ymao1 ymao1 requested review from ersin-erdal and umbopepato June 25, 2025 17:20
@umbopepato
Copy link
Member

Thanks Ying! I drafted the UI integration with these changes in #225437, I just have some small comments:

  • I see that the type for dtstart is optional: we cannot make it required because of backward compatibility, right?
  • The original requirements for the scheduled reports functionality included a Make recurring toggle to choose between running only once on the start date or also make the report recurring. Are we adding support for that too? (Just to know if I have to reenable the toggle too in the form).

I'll review the code too in a minute! 🙂

@ymao1
Copy link
Contributor Author

ymao1 commented Jun 26, 2025

I see that the type for dtstart is optional: we cannot make it required because of backward compatibility, right?

Yes that's correct. Will that be a problem?

The original requirements for the scheduled reports functionality included a Make recurring toggle to choose between running only once on the start date or also make the report recurring. Are we adding support for that too? (Just to know if I have to reenable the toggle too in the form).

I think the original requirement was making the assumption that the user flow would be something like Select export type > Open the flyout > Select between one-time or recurring vs our current flow which is Select export type or recurring > Open flyout. Given that, I don't think it makes sense to have that toggle when users have already clicked the Schedule export option. WDYT?

Copy link
Member

@umbopepato umbopepato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

try {
const dtstart = taskInstance.schedule.rrule.dtstart
? new Date(taskInstance.schedule.rrule.dtstart)
: now;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to be sure: is now fine even if it's not in the timezone from the rrule?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is the problem Zach solved, so yeah it is ok.
tzid is used to generate the recurrences with the given day, hour, minute etc.
dtstart is the start date of the recurrences, tzid doesn't affect it.

I tested it with the below config:

rrule: {
  freq: 3,
  interval: 1,
  tzid: 'Europe/Minsk', --> GMT+3
  dtstart: '2025-06-27T13:10:10.003Z',
  byhour: [19],
  byminute: [21],
},

and the calculated nextRun is: 2025-06-27T16:21:10.003Z

dtstart: now,
dtstart,
});
return rrule.after(now)?.toISOString() || nowString;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This override is not reflected in the dtstart returned in the list API, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, that dtstart should remain fixed

@tiamliu
Copy link

tiamliu commented Jun 26, 2025

I see that the type for dtstart is optional: we cannot make it required because of backward compatibility, right?

Yes that's correct. Will that be a problem?

The original requirements for the scheduled reports functionality included a Make recurring toggle to choose between running only once on the start date or also make the report recurring. Are we adding support for that too? (Just to know if I have to reenable the toggle too in the form).

I think the original requirement was making the assumption that the user flow would be something like Select export type > Open the flyout > Select between one-time or recurring vs our current flow which is Select export type or recurring > Open flyout. Given that, I don't think it makes sense to have that toggle when users have already clicked the Schedule export option. WDYT?

I think the original toggle is to allow a one time scheduled export vs a recurring export. Aka, I would like to schedule a one time export for July 2nd or I would like to schedule the export for July 2nd and all following tuesdays on a weekly bases.

@ymao1
Copy link
Contributor Author

ymao1 commented Jun 26, 2025

I think the original toggle is to allow a one time scheduled export vs a recurring export. Aka, I would like to schedule a one time export for July 2nd or I would like to schedule the export for July 2nd and all following tuesdays on a weekly bases.

Gotcha. I don't think we can support that right now.

Copy link
Contributor

@ersin-erdal ersin-erdal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Tested locally, works as expected.

ymao1 added a commit that referenced this pull request Jun 27, 2025
…e schedule - schema changes only for intermediate release (#224979)

## Summary

This PR contains the schema changes needed to support using `dtstart` in
task manager rrule schedules. This is meant for intermediate release and
then the changes will be used in this PR:
#224948

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 27, 2025
…e schedule - schema changes only for intermediate release (elastic#224979)

## Summary

This PR contains the schema changes needed to support using `dtstart` in
task manager rrule schedules. This is meant for intermediate release and
then the changes will be used in this PR:
elastic#224948

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit f43138c)
ymao1 added a commit to ymao1/kibana that referenced this pull request Jun 27, 2025
…e schedule - schema changes only for intermediate release (elastic#224979)

## Summary

This PR contains the schema changes needed to support using `dtstart` in
task manager rrule schedules. This is meant for intermediate release and
then the changes will be used in this PR:
elastic#224948

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit f43138c)

# Conflicts:
#	src/core/server/integration_tests/ci_checks/saved_objects/check_registered_types.test.ts
@ymao1 ymao1 removed the request for review from a team June 27, 2025 16:35
kibanamachine added a commit that referenced this pull request Jun 27, 2025
…n rrule schedule - schema changes only for intermediate release (#224979) (#225645)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Response Ops][Reporting][Task Manager] Allow setting dtstart in
rrule schedule - schema changes only for intermediate release
(#224979)](#224979)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Ying
Mao","email":"ying.mao@elastic.co"},"sourceCommit":{"committedDate":"2025-06-27T14:05:28Z","message":"[Response
Ops][Reporting][Task Manager] Allow setting dtstart in rrule schedule -
schema changes only for intermediate release (#224979)\n\n##
Summary\n\nThis PR contains the schema changes needed to support using
`dtstart` in\ntask manager rrule schedules. This is meant for
intermediate release and\nthen the changes will be used in this
PR:\nhttps://github.com//pull/224948\n\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"f43138c059047b5a73ea8fabbc976ed2fc09a6b9","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","Feature:Reporting:Framework","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[Response
Ops][Reporting][Task Manager] Allow setting dtstart in rrule schedule -
schema changes only for intermediate
release","number":224979,"url":"https://github.com/elastic/kibana/pull/224979","mergeCommit":{"message":"[Response
Ops][Reporting][Task Manager] Allow setting dtstart in rrule schedule -
schema changes only for intermediate release (#224979)\n\n##
Summary\n\nThis PR contains the schema changes needed to support using
`dtstart` in\ntask manager rrule schedules. This is meant for
intermediate release and\nthen the changes will be used in this
PR:\nhttps://github.com//pull/224948\n\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"f43138c059047b5a73ea8fabbc976ed2fc09a6b9"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/224979","number":224979,"mergeCommit":{"message":"[Response
Ops][Reporting][Task Manager] Allow setting dtstart in rrule schedule -
schema changes only for intermediate release (#224979)\n\n##
Summary\n\nThis PR contains the schema changes needed to support using
`dtstart` in\ntask manager rrule schedules. This is meant for
intermediate release and\nthen the changes will be used in this
PR:\nhttps://github.com//pull/224948\n\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"f43138c059047b5a73ea8fabbc976ed2fc09a6b9"}}]}]
BACKPORT-->

Co-authored-by: Ying Mao <ying.mao@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
ymao1 added a commit that referenced this pull request Jun 27, 2025
…in rrule schedule - schema changes only for intermediate release (#224979) (#225646)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Response Ops][Reporting][Task Manager] Allow setting dtstart in
rrule schedule - schema changes only for intermediate release
(#224979)](#224979)

<!--- Backport version: 10.0.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Ying
Mao","email":"ying.mao@elastic.co"},"sourceCommit":{"committedDate":"2025-06-27T14:05:28Z","message":"[Response
Ops][Reporting][Task Manager] Allow setting dtstart in rrule schedule -
schema changes only for intermediate release (#224979)\n\n##
Summary\n\nThis PR contains the schema changes needed to support using
`dtstart` in\ntask manager rrule schedules. This is meant for
intermediate release and\nthen the changes will be used in this
PR:\nhttps://github.com//pull/224948\n\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"f43138c059047b5a73ea8fabbc976ed2fc09a6b9","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","Feature:Reporting:Framework","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[Response
Ops][Reporting][Task Manager] Allow setting dtstart in rrule schedule -
schema changes only for intermediate
release","number":224979,"url":"https://github.com/elastic/kibana/pull/224979","mergeCommit":{"message":"[Response
Ops][Reporting][Task Manager] Allow setting dtstart in rrule schedule -
schema changes only for intermediate release (#224979)\n\n##
Summary\n\nThis PR contains the schema changes needed to support using
`dtstart` in\ntask manager rrule schedules. This is meant for
intermediate release and\nthen the changes will be used in this
PR:\nhttps://github.com//pull/224948\n\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"f43138c059047b5a73ea8fabbc976ed2fc09a6b9"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/225645","number":225645,"state":"OPEN"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/224979","number":224979,"mergeCommit":{"message":"[Response
Ops][Reporting][Task Manager] Allow setting dtstart in rrule schedule -
schema changes only for intermediate release (#224979)\n\n##
Summary\n\nThis PR contains the schema changes needed to support using
`dtstart` in\ntask manager rrule schedules. This is meant for
intermediate release and\nthen the changes will be used in this
PR:\nhttps://github.com//pull/224948\n\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"f43138c059047b5a73ea8fabbc976ed2fc09a6b9"}}]}]
BACKPORT-->
@ymao1
Copy link
Contributor Author

ymao1 commented Jul 1, 2025

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

cc @ymao1

@ymao1 ymao1 merged commit 29d2103 into elastic:main Jul 1, 2025
10 checks passed
@ymao1 ymao1 deleted the scheduled-report-tm-started-at branch July 1, 2025 15:31
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1

https://github.com/elastic/kibana/actions/runs/16003724040

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 1, 2025
…ule schedule (elastic#224948)

## Summary

- Updates task manager `rrule` schedule to allow for specifying an
optional `dtstart` date time. Task manager will use this to calculate
the first `runAt` for a recurring task (if defined). Each subsequent
`runAt` will continue to be calculated based on the previous `runAt`
time.
- Updates scheduled reporting API to use this ability.

Intermediate release PR for schema changes only:
https://github.com/elastic/kibana/pull/224979/files

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 29d2103)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 1, 2025
…ule schedule (elastic#224948)

## Summary

- Updates task manager `rrule` schedule to allow for specifying an
optional `dtstart` date time. Task manager will use this to calculate
the first `runAt` for a recurring task (if defined). Each subsequent
`runAt` will continue to be calculated based on the previous `runAt`
time.
- Updates scheduled reporting API to use this ability.

Intermediate release PR for schema changes only:
https://github.com/elastic/kibana/pull/224979/files

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 29d2103)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.19
9.1

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jul 1, 2025
… in rrule schedule (#224948) (#226047)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Response Ops][Reporting][Task Manager] Allow setting `dtstart` in
rrule schedule (#224948)](#224948)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Ying
Mao","email":"ying.mao@elastic.co"},"sourceCommit":{"committedDate":"2025-07-01T15:31:44Z","message":"[Response
Ops][Reporting][Task Manager] Allow setting `dtstart` in rrule schedule
(#224948)\n\n## Summary\n\n- Updates task manager `rrule` schedule to
allow for specifying an\noptional `dtstart` date time. Task manager will
use this to calculate\nthe first `runAt` for a recurring task (if
defined). Each subsequent\n`runAt` will continue to be calculated based
on the previous `runAt`\ntime.\n- Updates scheduled reporting API to use
this ability.\n\nIntermediate release PR for schema changes
only:\nhttps://github.com//pull/224979/files\n\n---------\n\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"29d210323cb4e15eb2c4b693eeeb8fbbf3d1324f","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","Feature:Reporting:Framework","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[Response
Ops][Reporting][Task Manager] Allow setting `dtstart` in rrule
schedule","number":224948,"url":"https://github.com/elastic/kibana/pull/224948","mergeCommit":{"message":"[Response
Ops][Reporting][Task Manager] Allow setting `dtstart` in rrule schedule
(#224948)\n\n## Summary\n\n- Updates task manager `rrule` schedule to
allow for specifying an\noptional `dtstart` date time. Task manager will
use this to calculate\nthe first `runAt` for a recurring task (if
defined). Each subsequent\n`runAt` will continue to be calculated based
on the previous `runAt`\ntime.\n- Updates scheduled reporting API to use
this ability.\n\nIntermediate release PR for schema changes
only:\nhttps://github.com//pull/224979/files\n\n---------\n\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"29d210323cb4e15eb2c4b693eeeb8fbbf3d1324f"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/224948","number":224948,"mergeCommit":{"message":"[Response
Ops][Reporting][Task Manager] Allow setting `dtstart` in rrule schedule
(#224948)\n\n## Summary\n\n- Updates task manager `rrule` schedule to
allow for specifying an\noptional `dtstart` date time. Task manager will
use this to calculate\nthe first `runAt` for a recurring task (if
defined). Each subsequent\n`runAt` will continue to be calculated based
on the previous `runAt`\ntime.\n- Updates scheduled reporting API to use
this ability.\n\nIntermediate release PR for schema changes
only:\nhttps://github.com//pull/224979/files\n\n---------\n\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"29d210323cb4e15eb2c4b693eeeb8fbbf3d1324f"}}]}]
BACKPORT-->

Co-authored-by: Ying Mao <ying.mao@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Jul 1, 2025
…` in rrule schedule (#224948) (#226046)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Response Ops][Reporting][Task Manager] Allow setting `dtstart` in
rrule schedule (#224948)](#224948)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Ying
Mao","email":"ying.mao@elastic.co"},"sourceCommit":{"committedDate":"2025-07-01T15:31:44Z","message":"[Response
Ops][Reporting][Task Manager] Allow setting `dtstart` in rrule schedule
(#224948)\n\n## Summary\n\n- Updates task manager `rrule` schedule to
allow for specifying an\noptional `dtstart` date time. Task manager will
use this to calculate\nthe first `runAt` for a recurring task (if
defined). Each subsequent\n`runAt` will continue to be calculated based
on the previous `runAt`\ntime.\n- Updates scheduled reporting API to use
this ability.\n\nIntermediate release PR for schema changes
only:\nhttps://github.com//pull/224979/files\n\n---------\n\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"29d210323cb4e15eb2c4b693eeeb8fbbf3d1324f","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","Feature:Reporting:Framework","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[Response
Ops][Reporting][Task Manager] Allow setting `dtstart` in rrule
schedule","number":224948,"url":"https://github.com/elastic/kibana/pull/224948","mergeCommit":{"message":"[Response
Ops][Reporting][Task Manager] Allow setting `dtstart` in rrule schedule
(#224948)\n\n## Summary\n\n- Updates task manager `rrule` schedule to
allow for specifying an\noptional `dtstart` date time. Task manager will
use this to calculate\nthe first `runAt` for a recurring task (if
defined). Each subsequent\n`runAt` will continue to be calculated based
on the previous `runAt`\ntime.\n- Updates scheduled reporting API to use
this ability.\n\nIntermediate release PR for schema changes
only:\nhttps://github.com//pull/224979/files\n\n---------\n\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"29d210323cb4e15eb2c4b693eeeb8fbbf3d1324f"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/224948","number":224948,"mergeCommit":{"message":"[Response
Ops][Reporting][Task Manager] Allow setting `dtstart` in rrule schedule
(#224948)\n\n## Summary\n\n- Updates task manager `rrule` schedule to
allow for specifying an\noptional `dtstart` date time. Task manager will
use this to calculate\nthe first `runAt` for a recurring task (if
defined). Each subsequent\n`runAt` will continue to be calculated based
on the previous `runAt`\ntime.\n- Updates scheduled reporting API to use
this ability.\n\nIntermediate release PR for schema changes
only:\nhttps://github.com//pull/224979/files\n\n---------\n\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"29d210323cb4e15eb2c4b693eeeb8fbbf3d1324f"}}]}]
BACKPORT-->

Co-authored-by: Ying Mao <ying.mao@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
…ule schedule (elastic#224948)

## Summary

- Updates task manager `rrule` schedule to allow for specifying an
optional `dtstart` date time. Task manager will use this to calculate
the first `runAt` for a recurring task (if defined). Each subsequent
`runAt` will continue to be calculated based on the previous `runAt`
time.
- Updates scheduled reporting API to use this ability.

Intermediate release PR for schema changes only:
https://github.com/elastic/kibana/pull/224979/files

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels Feature:Reporting:Framework Reporting issues pertaining to the overall framework release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v8.19.0 v9.1.0 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants