We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Get task status for remote job using hard-coded status field https://github.com/opensearch-project/ml-commons/blob/main/plugin/src/main/java/org/opensearch/ml/action/tasks/GetTaskTransportAction.java#L252
if ((remoteJob.containsKey("status") && remoteJob.get("status").equals("completed")) || (remoteJob.containsKey("TransformJobStatus") && remoteJob.get("TransformJobStatus").equals("Completed"))) { updatedTask.put(STATE_FIELD, COMPLETED); mlTask.setState(COMPLETED); } else if ((remoteJob.containsKey("status") && remoteJob.get("status").equals("cancelled")) || (remoteJob.containsKey("TransformJobStatus") && remoteJob.get("TransformJobStatus").equals("Stopped"))) { updatedTask.put(STATE_FIELD, CANCELLED); mlTask.setState(CANCELLED); }
Cohere batch embed job will return complete. The current code can't work for this case.
complete
We need to enhance this part. Suggest to remove the hard-coded part by adding settings for status field and status regex.
Get Bedrock inference job API needs jobArn, but the jobArn has / which will cause failure "The provided ARN is invalid.", need to escape / to %2F.
jobArn
/
%2F
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Hard coded status parsing logic
Get task status for remote job using hard-coded status field https://github.com/opensearch-project/ml-commons/blob/main/plugin/src/main/java/org/opensearch/ml/action/tasks/GetTaskTransportAction.java#L252
Cohere batch embed job will return
complete
. The current code can't work for this case.We need to enhance this part. Suggest to remove the hard-coded part by adding settings for status field and status regex.
Bedrock inference job arn can't work
Get Bedrock inference job API needs
jobArn
, but thejobArn
has/
which will cause failure "The provided ARN is invalid.", need to escape/
to%2F
.The text was updated successfully, but these errors were encountered: