Skip to main content

GetRefreshExternalCollectionProgress()

This operation gets progress for a refresh-external-collection job. Use it to poll job completion and inspect failure reasons.

c++
Status GetRefreshExternalCollectionProgress(const GetRefreshExternalCollectionProgressRequest& request, GetRefreshExternalCollectionProgressResponse& response)

Request Syntax

c++
auto request = milvus::GetRefreshExternalCollectionProgressRequest()
.WithJobID(job_id);

REQUEST METHODS:

  • WithJobID(int64_t job_id)

    Sets the refresh job ID returned by RefreshExternalCollection().

RETURNS:

Status

EXCEPTIONS:

  • std::exception

    This exception can be raised if the request cannot be sent or the response cannot be parsed.

Example

c++
auto client = milvus::MilvusClientV2::Create();
milvus::ConnectParam connect_param{"YOUR_CLUSTER_ENDPOINT", "YOUR_CLUSTER_TOKEN"};
auto status = client->Connect(connect_param);
if (!status.IsOk()) {
std::cout << status.Message() << std::endl;
}

auto request = milvus::GetRefreshExternalCollectionProgressRequest()
.WithJobID(job_id);
milvus::GetRefreshExternalCollectionProgressResponse response;
status = client->GetRefreshExternalCollectionProgress(request, response);
if (!status.IsOk()) {
std::cout << status.Message() << std::endl;
}
Minimum SDK versionv3.0.x
Ctrl I