Skip to content

[LogsUI] Address non-blocking nature of job deletion ML API - #46040

Merged
Kerry350 merged 5 commits into
elastic:masterfrom
Kerry350:45350-account-for-non-blocking-deletion-in-analysis
Sep 24, 2019
Merged

Kerry350 merged 5 commits into
elastic:masterfrom
Kerry350:45350-account-for-non-blocking-deletion-in-analysis

Conversation

@Kerry350

Copy link
Copy Markdown
Contributor

Summary

This PR closes #45350. When performing the cleanup operation it will now poll the /api/ml/jobs/deleting_jobs_task endpoint to ensure the jobs have actually been deleted, before proceeding to setup the analysis module again. It will wait 1 second between polling.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

- Ensure we wait until jobs are actually deleted before setting up the module again

- Compose deletion functions and add utility function for getting all module jobIds

- Add io-ts types for cleanup responses
@Kerry350 Kerry350 added v8.0.0 Feature:Logs UI Logs UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.5.0 :Logs UI v7.4.1 labels Sep 18, 2019
@Kerry350
Kerry350 requested a review from a team September 18, 2019 16:37
@Kerry350 Kerry350 self-assigned this Sep 18, 2019
@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/infra-logs-ui

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@Kerry350

Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@weltenwort
weltenwort self-requested a review September 23, 2019 10:43

@weltenwort weltenwort left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM and seems to work well. 👍

I left just two stylistic questions below. 😇

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@Kerry350 Kerry350 removed the v7.4.1 label Sep 24, 2019
@Kerry350
Kerry350 merged commit 0209087 into elastic:master Sep 24, 2019
Kerry350 added a commit to Kerry350/kibana that referenced this pull request Sep 24, 2019
…46040)

* Address non-blocking nature of job deletion ML API

- Ensure we wait until jobs are actually deleted before setting up the module again

- Compose deletion functions and add utility function for getting all module jobIds

- Add io-ts types for cleanup responses

* Reorganise functions for readability

* Return the callDeleteJobs response from the overall wrapper deleteJobs function
Kerry350 added a commit that referenced this pull request Sep 24, 2019
…46443)

* Address non-blocking nature of job deletion ML API

- Ensure we wait until jobs are actually deleted before setting up the module again

- Compose deletion functions and add utility function for getting all module jobIds

- Add io-ts types for cleanup responses

* Reorganise functions for readability

* Return the callDeleteJobs response from the overall wrapper deleteJobs function
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
…46040)

* Address non-blocking nature of job deletion ML API

- Ensure we wait until jobs are actually deleted before setting up the module again

- Compose deletion functions and add utility function for getting all module jobIds

- Add io-ts types for cleanup responses

* Reorganise functions for readability

* Return the callDeleteJobs response from the overall wrapper deleteJobs function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Logs UI Logs UI feature release_note:fix Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.5.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Logs UI] Analysis job deletion doesn't take into account the non-blocking nature of the task

3 participants