Skip to content

A few improvements to AnalyticsProcessManager class that make the code more readable. #50026

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

Merged
merged 3 commits into from
Dec 11, 2019

Conversation

przemekwitek
Copy link
Contributor

@przemekwitek przemekwitek commented Dec 10, 2019

This PR implements a few improvements to the AnalyticsProcessManager class:

  1. inline finishHandler into AnalyticsProcessManager class so that all the interactions with task are clearly visible
  2. Make use of SetOnce wrappers in ProcessContext
  3. Store config in ProcessContext so that config does not have to be passed around

Relates #49680

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml)

Copy link
Contributor

@dimitris-athanasiou dimitris-athanasiou left a comment

Choose a reason for hiding this comment

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

LGTM Just a suggestion to add a logging message.

@przemekwitek
Copy link
Contributor Author

run elasticsearch-ci/bwc
run elasticsearch-ci/default-distro

@przemekwitek
Copy link
Contributor Author

run elasticsearch-ci/packaging-sample-matrix

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

Successfully merging this pull request may close these issues.

4 participants