-
Notifications
You must be signed in to change notification settings - Fork 138
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
Adding MLTask #24
Adding MLTask #24
Conversation
Adjust taskType and state to use Enum type.
@Getter | ||
private final String taskId; | ||
|
||
@Getter | ||
private final MLTaskType taskType; | ||
|
||
@Setter | ||
@Getter | ||
private MLTaskState state; | ||
|
||
@Getter | ||
private final Instant createTime; | ||
|
||
@Getter | ||
private final String modelId; | ||
|
||
@Setter | ||
@Getter | ||
private String error; |
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.
Minor: move @Getter to above class definition to simplify the Getter annotation
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.
For this string error, not sure if it can meet our use case or not. we can keep it this way now and refactor it later when needed
* Add MLTask data model. * Align task type * Modify MLTaskTest case * Add error field to store failure message Adjust taskType and state to use Enum type. * Move @Getter to class level
Description
Add MLTask data model to model ML request(train/predict). Later this MLTask will be used in following scenarios:
Issues Resolved
Part of task and resource management
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.