Skip to content

Fix reporting pollEnabled config#228707

Merged
ersin-erdal merged 7 commits intoelastic:mainfrom
ersin-erdal:226506-mget-polling-enabled
Jul 22, 2025
Merged

Fix reporting pollEnabled config#228707
ersin-erdal merged 7 commits intoelastic:mainfrom
ersin-erdal:226506-mget-polling-enabled

Conversation

@ersin-erdal
Copy link
Contributor

@ersin-erdal ersin-erdal commented Jul 21, 2025

Fixes: #226506

This PR fixes the bug: xpack.reporting.queue.pollEnabled config to be ignored by the mget claim strategy.

To verify:

Set xpack.reporting.queue.pollEnabled: false in your kibana.yml.
Then try to generate a report.
The task should be successfully created but its status should remain as pending on the reports page.

Screenshot 2025-07-21 at 02 35 40

@ersin-erdal ersin-erdal added release_note:fix backport:skip This PR does not require backporting Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// labels Jul 21, 2025
@ersin-erdal ersin-erdal marked this pull request as ready for review July 21, 2025 13:10
@ersin-erdal ersin-erdal requested a review from a team as a code owner July 21, 2025 13:10
@elasticmachine
Copy link
Contributor

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

@adcoelho
Copy link
Contributor

Set xpack.reporting.queue.pollEnabled: true in your kibana.yml.

Considering the original issue, shouldn't this be false? 😅

const initialCapacity = getCapacity();
const stopTaskTimer = startTaskTimer();

const taskTypes = new Set<string>();
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 the problem lies in

if (taskDefinition && taskDefinition.maxConcurrency) {

where we're just checking for taskDefinition.maxConcurrency, so not handling the max concurrency of 0 correctly. we're already getting the limited and unlimited batches in the buildClaimPartitions function below but the capacity is returning incorrectly when the maxConcurrency is 0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't even check that part because update_by_query relies on the batches to filter out the skipped tasks, just applied the same logic here.
Thanks for pointing the above problem, moved the fix there.
I guess the same fix should be applied to worker_capacity as well. Fixed that too.

@ersin-erdal
Copy link
Contributor Author

Set xpack.reporting.queue.pollEnabled: true in your kibana.yml.

Considering the original issue, shouldn't this be false? 😅

Correct, fixed it :)

Copy link
Contributor

@ymao1 ymao1 left a comment

Choose a reason for hiding this comment

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

LGTM. Verified report tasks are not claimed when pollEnabled is false and claimed when pollEnabled is true.

We should backport this fix as far back as possible. This bug was introduced in 8.16.

): number {
const allAvailableCapacity = this.capacity - this.usedCapacity(tasksInPool);
if (taskDefinition && taskDefinition.maxConcurrency) {
if (taskDefinition && !isNullish(taskDefinition.maxConcurrency)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

could probably add a unit test for when maxConcurrency is 0 as well


const searchQueryMust = store.msearch.mock.calls[0]?.[0]?.[0].query?.bool?.must;

expect(Array.isArray(searchQueryMust) && searchQueryMust[1]).toEqual({
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe another expect clause that the query does not contain sampleTaskZeroMaxConcurrency?

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

@ersin-erdal ersin-erdal merged commit 8690830 into elastic:main Jul 22, 2025
12 checks passed
ersin-erdal added a commit to ersin-erdal/kibana that referenced this pull request Jul 22, 2025
Fixes: elastic#226506

This PR fixes the bug: `xpack.reporting.queue.pollEnabled` config to be
ignored by the `mget` claim strategy.

## To verify:

Set  `xpack.reporting.queue.pollEnabled: false` in your kibana.yml.
Then try to generate a report.
The task should be successfully created but its status should remain as
`pending` on the reports page.

<img width="999" height="343" alt="Screenshot 2025-07-21 at 02 35 40"
src="https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37"
/>

(cherry picked from commit 8690830)
ersin-erdal added a commit to ersin-erdal/kibana that referenced this pull request Jul 22, 2025
Fixes: elastic#226506

This PR fixes the bug: `xpack.reporting.queue.pollEnabled` config to be
ignored by the `mget` claim strategy.

## To verify:

Set  `xpack.reporting.queue.pollEnabled: false` in your kibana.yml.
Then try to generate a report.
The task should be successfully created but its status should remain as
`pending` on the reports page.

<img width="999" height="343" alt="Screenshot 2025-07-21 at 02 35 40"
src="https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37"
/>

(cherry picked from commit 8690830)

# Conflicts:
#	x-pack/platform/plugins/shared/task_manager/server/task_claimers/strategy_mget.test.ts
#	x-pack/platform/plugins/shared/task_manager/server/task_pool/cost_capacity.ts
#	x-pack/platform/plugins/shared/task_manager/server/task_pool/worker_capacity.ts
@ersin-erdal
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
9.1
9.0
8.19
8.18

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

Questions ?

Please refer to the Backport tool documentation

ersin-erdal added a commit to ersin-erdal/kibana that referenced this pull request Jul 22, 2025
Fixes: elastic#226506

This PR fixes the bug: `xpack.reporting.queue.pollEnabled` config to be
ignored by the `mget` claim strategy.

## To verify:

Set  `xpack.reporting.queue.pollEnabled: false` in your kibana.yml.
Then try to generate a report.
The task should be successfully created but its status should remain as
`pending` on the reports page.

<img width="999" height="343" alt="Screenshot 2025-07-21 at 02 35 40"
src="https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37"
/>

(cherry picked from commit 8690830)

# Conflicts:
#	x-pack/platform/plugins/shared/task_manager/server/task_claimers/strategy_mget.test.ts
#	x-pack/platform/plugins/shared/task_manager/server/task_pool/cost_capacity.ts
#	x-pack/platform/plugins/shared/task_manager/server/task_pool/worker_capacity.ts
ersin-erdal added a commit to ersin-erdal/kibana that referenced this pull request Jul 22, 2025
Fixes: elastic#226506

This PR fixes the bug: `xpack.reporting.queue.pollEnabled` config to be
ignored by the `mget` claim strategy.

## To verify:

Set  `xpack.reporting.queue.pollEnabled: false` in your kibana.yml.
Then try to generate a report.
The task should be successfully created but its status should remain as
`pending` on the reports page.

<img width="999" height="343" alt="Screenshot 2025-07-21 at 02 35 40"
src="https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37"
/>

(cherry picked from commit 8690830)
Bluefinger pushed a commit to Bluefinger/kibana that referenced this pull request Jul 22, 2025
Fixes: elastic#226506

This PR fixes the bug: `xpack.reporting.queue.pollEnabled` config to be
ignored by the `mget` claim strategy.

## To verify: 

Set  `xpack.reporting.queue.pollEnabled: false` in your kibana.yml.
Then try to generate a report.
The task should be successfully created but its status should remain as
`pending` on the reports page.

<img width="999" height="343" alt="Screenshot 2025-07-21 at 02 35 40"
src="https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37"
/>
maxcold pushed a commit that referenced this pull request Jul 22, 2025
Fixes: #226506

This PR fixes the bug: `xpack.reporting.queue.pollEnabled` config to be
ignored by the `mget` claim strategy.

## To verify: 

Set  `xpack.reporting.queue.pollEnabled: false` in your kibana.yml.
Then try to generate a report.
The task should be successfully created but its status should remain as
`pending` on the reports page.

<img width="999" height="343" alt="Screenshot 2025-07-21 at 02 35 40"
src="https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37"
/>
ersin-erdal added a commit that referenced this pull request Jul 22, 2025
# Backport

This will backport the following commits from `main` to `8.18`:
- [Fix reporting pollEnabled config
(#228707)](#228707)

<!--- Backport version: 10.0.1 -->

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

<!--BACKPORT [{"author":{"name":"Ersin
Erdal","email":"92688503+ersin-erdal@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-07-22T07:23:56Z","message":"Fix
reporting pollEnabled config (#228707)\n\nFixes: #226506\n\nThis PR
fixes the bug: `xpack.reporting.queue.pollEnabled` config to be\nignored
by the `mget` claim strategy.\n\n## To verify: \n\nSet
`xpack.reporting.queue.pollEnabled: false` in your kibana.yml.\nThen try
to generate a report.\nThe task should be successfully created but its
status should remain as\n`pending` on the reports page.\n\n<img
width=\"999\" height=\"343\" alt=\"Screenshot 2025-07-21 at 02 35
40\"\nsrc=\"https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37\"\n/>","sha":"8690830b3e4966d9191b9d5d4ce6e573445854d3","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:skip","Team:ResponseOps","v9.2.0"],"title":"Fix
reporting pollEnabled
config","number":228707,"url":"https://github.com/elastic/kibana/pull/228707","mergeCommit":{"message":"Fix
reporting pollEnabled config (#228707)\n\nFixes: #226506\n\nThis PR
fixes the bug: `xpack.reporting.queue.pollEnabled` config to be\nignored
by the `mget` claim strategy.\n\n## To verify: \n\nSet
`xpack.reporting.queue.pollEnabled: false` in your kibana.yml.\nThen try
to generate a report.\nThe task should be successfully created but its
status should remain as\n`pending` on the reports page.\n\n<img
width=\"999\" height=\"343\" alt=\"Screenshot 2025-07-21 at 02 35
40\"\nsrc=\"https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37\"\n/>","sha":"8690830b3e4966d9191b9d5d4ce6e573445854d3"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/228707","number":228707,"mergeCommit":{"message":"Fix
reporting pollEnabled config (#228707)\n\nFixes: #226506\n\nThis PR
fixes the bug: `xpack.reporting.queue.pollEnabled` config to be\nignored
by the `mget` claim strategy.\n\n## To verify: \n\nSet
`xpack.reporting.queue.pollEnabled: false` in your kibana.yml.\nThen try
to generate a report.\nThe task should be successfully created but its
status should remain as\n`pending` on the reports page.\n\n<img
width=\"999\" height=\"343\" alt=\"Screenshot 2025-07-21 at 02 35
40\"\nsrc=\"https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37\"\n/>","sha":"8690830b3e4966d9191b9d5d4ce6e573445854d3"}}]}]
BACKPORT-->
ersin-erdal added a commit that referenced this pull request Jul 22, 2025
# Backport

This will backport the following commits from `main` to `8.19`:
- [Fix reporting pollEnabled config
(#228707)](#228707)

<!--- Backport version: 10.0.1 -->

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

<!--BACKPORT [{"author":{"name":"Ersin
Erdal","email":"92688503+ersin-erdal@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-07-22T07:23:56Z","message":"Fix
reporting pollEnabled config (#228707)\n\nFixes: #226506\n\nThis PR
fixes the bug: `xpack.reporting.queue.pollEnabled` config to be\nignored
by the `mget` claim strategy.\n\n## To verify: \n\nSet
`xpack.reporting.queue.pollEnabled: false` in your kibana.yml.\nThen try
to generate a report.\nThe task should be successfully created but its
status should remain as\n`pending` on the reports page.\n\n<img
width=\"999\" height=\"343\" alt=\"Screenshot 2025-07-21 at 02 35
40\"\nsrc=\"https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37\"\n/>","sha":"8690830b3e4966d9191b9d5d4ce6e573445854d3","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:skip","Team:ResponseOps","v9.2.0"],"title":"Fix
reporting pollEnabled
config","number":228707,"url":"https://github.com/elastic/kibana/pull/228707","mergeCommit":{"message":"Fix
reporting pollEnabled config (#228707)\n\nFixes: #226506\n\nThis PR
fixes the bug: `xpack.reporting.queue.pollEnabled` config to be\nignored
by the `mget` claim strategy.\n\n## To verify: \n\nSet
`xpack.reporting.queue.pollEnabled: false` in your kibana.yml.\nThen try
to generate a report.\nThe task should be successfully created but its
status should remain as\n`pending` on the reports page.\n\n<img
width=\"999\" height=\"343\" alt=\"Screenshot 2025-07-21 at 02 35
40\"\nsrc=\"https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37\"\n/>","sha":"8690830b3e4966d9191b9d5d4ce6e573445854d3"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/228707","number":228707,"mergeCommit":{"message":"Fix
reporting pollEnabled config (#228707)\n\nFixes: #226506\n\nThis PR
fixes the bug: `xpack.reporting.queue.pollEnabled` config to be\nignored
by the `mget` claim strategy.\n\n## To verify: \n\nSet
`xpack.reporting.queue.pollEnabled: false` in your kibana.yml.\nThen try
to generate a report.\nThe task should be successfully created but its
status should remain as\n`pending` on the reports page.\n\n<img
width=\"999\" height=\"343\" alt=\"Screenshot 2025-07-21 at 02 35
40\"\nsrc=\"https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37\"\n/>","sha":"8690830b3e4966d9191b9d5d4ce6e573445854d3"}}]}]
BACKPORT-->
ersin-erdal added a commit that referenced this pull request Jul 22, 2025
# Backport

This will backport the following commits from `main` to `9.0`:
- [Fix reporting pollEnabled config
(#228707)](#228707)

<!--- Backport version: 10.0.1 -->

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

<!--BACKPORT [{"author":{"name":"Ersin
Erdal","email":"92688503+ersin-erdal@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-07-22T07:23:56Z","message":"Fix
reporting pollEnabled config (#228707)\n\nFixes: #226506\n\nThis PR
fixes the bug: `xpack.reporting.queue.pollEnabled` config to be\nignored
by the `mget` claim strategy.\n\n## To verify: \n\nSet
`xpack.reporting.queue.pollEnabled: false` in your kibana.yml.\nThen try
to generate a report.\nThe task should be successfully created but its
status should remain as\n`pending` on the reports page.\n\n<img
width=\"999\" height=\"343\" alt=\"Screenshot 2025-07-21 at 02 35
40\"\nsrc=\"https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37\"\n/>","sha":"8690830b3e4966d9191b9d5d4ce6e573445854d3","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:skip","Team:ResponseOps","v9.2.0"],"title":"Fix
reporting pollEnabled
config","number":228707,"url":"https://github.com/elastic/kibana/pull/228707","mergeCommit":{"message":"Fix
reporting pollEnabled config (#228707)\n\nFixes: #226506\n\nThis PR
fixes the bug: `xpack.reporting.queue.pollEnabled` config to be\nignored
by the `mget` claim strategy.\n\n## To verify: \n\nSet
`xpack.reporting.queue.pollEnabled: false` in your kibana.yml.\nThen try
to generate a report.\nThe task should be successfully created but its
status should remain as\n`pending` on the reports page.\n\n<img
width=\"999\" height=\"343\" alt=\"Screenshot 2025-07-21 at 02 35
40\"\nsrc=\"https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37\"\n/>","sha":"8690830b3e4966d9191b9d5d4ce6e573445854d3"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/228707","number":228707,"mergeCommit":{"message":"Fix
reporting pollEnabled config (#228707)\n\nFixes: #226506\n\nThis PR
fixes the bug: `xpack.reporting.queue.pollEnabled` config to be\nignored
by the `mget` claim strategy.\n\n## To verify: \n\nSet
`xpack.reporting.queue.pollEnabled: false` in your kibana.yml.\nThen try
to generate a report.\nThe task should be successfully created but its
status should remain as\n`pending` on the reports page.\n\n<img
width=\"999\" height=\"343\" alt=\"Screenshot 2025-07-21 at 02 35
40\"\nsrc=\"https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37\"\n/>","sha":"8690830b3e4966d9191b9d5d4ce6e573445854d3"}}]}]
BACKPORT-->
ersin-erdal added a commit that referenced this pull request Jul 22, 2025
# Backport

This will backport the following commits from `main` to `9.1`:
- [Fix reporting pollEnabled config
(#228707)](#228707)

<!--- Backport version: 10.0.1 -->

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

<!--BACKPORT [{"author":{"name":"Ersin
Erdal","email":"92688503+ersin-erdal@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-07-22T07:23:56Z","message":"Fix
reporting pollEnabled config (#228707)\n\nFixes: #226506\n\nThis PR
fixes the bug: `xpack.reporting.queue.pollEnabled` config to be\nignored
by the `mget` claim strategy.\n\n## To verify: \n\nSet
`xpack.reporting.queue.pollEnabled: false` in your kibana.yml.\nThen try
to generate a report.\nThe task should be successfully created but its
status should remain as\n`pending` on the reports page.\n\n<img
width=\"999\" height=\"343\" alt=\"Screenshot 2025-07-21 at 02 35
40\"\nsrc=\"https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37\"\n/>","sha":"8690830b3e4966d9191b9d5d4ce6e573445854d3","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:skip","Team:ResponseOps","v9.2.0"],"title":"Fix
reporting pollEnabled
config","number":228707,"url":"https://github.com/elastic/kibana/pull/228707","mergeCommit":{"message":"Fix
reporting pollEnabled config (#228707)\n\nFixes: #226506\n\nThis PR
fixes the bug: `xpack.reporting.queue.pollEnabled` config to be\nignored
by the `mget` claim strategy.\n\n## To verify: \n\nSet
`xpack.reporting.queue.pollEnabled: false` in your kibana.yml.\nThen try
to generate a report.\nThe task should be successfully created but its
status should remain as\n`pending` on the reports page.\n\n<img
width=\"999\" height=\"343\" alt=\"Screenshot 2025-07-21 at 02 35
40\"\nsrc=\"https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37\"\n/>","sha":"8690830b3e4966d9191b9d5d4ce6e573445854d3"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/228707","number":228707,"mergeCommit":{"message":"Fix
reporting pollEnabled config (#228707)\n\nFixes: #226506\n\nThis PR
fixes the bug: `xpack.reporting.queue.pollEnabled` config to be\nignored
by the `mget` claim strategy.\n\n## To verify: \n\nSet
`xpack.reporting.queue.pollEnabled: false` in your kibana.yml.\nThen try
to generate a report.\nThe task should be successfully created but its
status should remain as\n`pending` on the reports page.\n\n<img
width=\"999\" height=\"343\" alt=\"Screenshot 2025-07-21 at 02 35
40\"\nsrc=\"https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37\"\n/>","sha":"8690830b3e4966d9191b9d5d4ce6e573445854d3"}}]}]
BACKPORT-->
kdelemme pushed a commit to kdelemme/kibana that referenced this pull request Jul 23, 2025
Fixes: elastic#226506

This PR fixes the bug: `xpack.reporting.queue.pollEnabled` config to be
ignored by the `mget` claim strategy.

## To verify: 

Set  `xpack.reporting.queue.pollEnabled: false` in your kibana.yml.
Then try to generate a report.
The task should be successfully created but its status should remain as
`pending` on the reports page.

<img width="999" height="343" alt="Screenshot 2025-07-21 at 02 35 40"
src="https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37"
/>
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
Fixes: elastic#226506

This PR fixes the bug: `xpack.reporting.queue.pollEnabled` config to be
ignored by the `mget` claim strategy.

## To verify: 

Set  `xpack.reporting.queue.pollEnabled: false` in your kibana.yml.
Then try to generate a report.
The task should be successfully created but its status should remain as
`pending` on the reports page.

<img width="999" height="343" alt="Screenshot 2025-07-21 at 02 35 40"
src="https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37"
/>
crespocarlos pushed a commit to crespocarlos/kibana that referenced this pull request Jul 25, 2025
Fixes: elastic#226506

This PR fixes the bug: `xpack.reporting.queue.pollEnabled` config to be
ignored by the `mget` claim strategy.

## To verify: 

Set  `xpack.reporting.queue.pollEnabled: false` in your kibana.yml.
Then try to generate a report.
The task should be successfully created but its status should remain as
`pending` on the reports page.

<img width="999" height="343" alt="Screenshot 2025-07-21 at 02 35 40"
src="https://github.com/user-attachments/assets/0e7d5959-76c4-4519-ac3e-a3ca56f57f37"
/>
@jstrassb
Copy link

Thanks for fixing this @ersin-erdal!
I think the version labels in #228707 (comment) went a bit haywire, and old ones that the fixes did not make it into are still labelled here. Could you please review?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:fix Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v8.18.4 v8.19.0 v9.0.4 v9.1.0 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Reporting] investigate reported issues with xpack.reporting.queue.pollEnabled no longer working

6 participants