GetImportProgress()

Gets the current state and progress of one bulk-import job.

pub async fn get_import_progress(&self, request: GetImportProgressRequest) -> Result<BulkImportResponse>

Request Syntax

let request = GetImportProgressRequest::builder()
    .job_id("job-1")
    .build()?;

REQUEST FIELDS:

  • database_name: String

    Name of the database that holds the collection.

  • job_id: String

    ID of the import job. Required.

  • cluster_id: String

    Cluster ID for Zilliz Cloud deployments. Cannot be combined with project_id and region_id.

  • project_id: String

    Project ID for Zilliz Cloud deployments. Must be specified together with region_id.

  • region_id: String

    Region ID for Zilliz Cloud deployments. Must be specified together with project_id.

RETURN TYPE:

Result

RETURNS:

A BulkImportResponse containing the bulk-import endpoint response. Returns an Error if the operation fails.

BulkImportResponse
    code() // -> i64
    message() // -> &str
    data() // -> &Value
    get_data_field() // -> Option<&Value>
    job_id() // -> Option<&str>
    state() // -> Option<&str>
    progress() // -> Option<i64>
    reason() // -> Option<&str>

METHODS:

  • code() (i64) -

    The response status code.

  • message() (&str) -

    The response message.

  • data() (&Value) -

    The raw response data payload.

  • get_data_field() (Option<&Value>) -

    A named field from the response data, when present.

  • job_id() (Option<&str>) -

    The job ID reported by the endpoint, when present.

  • state() (Option<&str>) -

    The job state reported by the endpoint, when present.

  • progress() (Option) -

    The job progress reported by the endpoint, when present.

  • reason() (Option<&str>) -

    The failure reason reported by the endpoint, when present.

Example

let request = GetImportProgressRequest::builder()
    .job_id("job-1")
    .build()?;
let resp = bulk.get_import_progress(request).await?;
println!("state: {:?}, progress: {:?}", resp.state(), resp.progress());

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?