-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
[ML] Add reason to DataFrameAnalyticsTask updateState log message #52659
Conversation
Pinging @elastic/ml-core (:ml) |
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.
100% we should include the reason :)
SGTM if that's what the method is used for. |
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
e3dc914
to
2e8a2f7
Compare
@przemekwitek I made the refactor of renaming the method to |
LGTM2 |
When setting the state to FAILED the reason isn't logged. Debugging would be simpler if it was.
It looks to me like
DataFrameAnalyticsTask.updateState()
is only ever called withDataFrameAnalyticsState.FAILED
the non failure updates callAllocatedPersistentTask.updatePersistentTaskState()
. @przemekwitek what do you think of renaming this method tosetFailed
as this method has the extra logging we are not really interesting in when setting the state to STARTED etc.For #52654