-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[Task Manager] Skip removed task types when claiming tasks #84273
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
Conversation
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
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.
LGTM
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.
LGTM, looks like it's working as expected. :)
My two notes though are:
- Can we reduce the size of
mappings.json
? - Is it worth marking the removed tasks as
failed
(or even a new status?)? otherwise they'll remain in 'idle` forever. This isn't a must, but seems like a nice tweak while we're in here.
x-pack/test/functional/es_archives/task_manager_removed_types/mappings.json
Show resolved
Hide resolved
…manager/removed-types
…manager/removed-types
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
…4273) * Checking if task type is in registered list * Loading esArchiver data with removed task type for testing * PR fixes
Resolves #84088
Summary
Adds a check in the update by query painless script to ensure the task type is in the list of currently registered task types to ensure we're only trying to claim (or mark as failed) current task types.
Checklist
Delete any items that are not applicable to this PR.