Open ymao1 opened 1 month ago
During rule execution, we check whether the rule snooze schedule is up to date and clear any expired snoozes if it is not.
https://github.com/elastic/kibana/blob/f40bf527ff84d6d3d393a068c7c5f9a44586680d/x-pack/plugins/alerting/server/task_runner/task_runner.ts#L553-L563
We should consider moving this check to a background task to reduce the number of ES calls that made during rule execution.
Pinging @elastic/response-ops (Team:ResponseOps)
During rule execution, we check whether the rule snooze schedule is up to date and clear any expired snoozes if it is not.
https://github.com/elastic/kibana/blob/f40bf527ff84d6d3d393a068c7c5f9a44586680d/x-pack/plugins/alerting/server/task_runner/task_runner.ts#L553-L563
We should consider moving this check to a background task to reduce the number of ES calls that made during rule execution.