跳到主要内容

get_import_progress()

AddedInheritModifiedv2.6.x
  • This function returns the current status of a bulk import job.

    Region ID for project-database import jobs.

Request Syntax

get_import_progress(

url: str, job_id: str, cluster_id: str = "", api_key: str = "", verify: bool | str = True, cert: str | tuple | None = None, **kwargs, ){#getimportprogress-url-str-jobid-str-clusterid-str-apikey-str-verify-bool}

PARAMETERS:

url (str) -

  • job_id (str) -

    [REQUIRED]

    Server endpoint for bulk import APIs.

  • cluster_id (str) -

    [REQUIRED]

    Import job ID returned by bulk_import().

  • api_key (str) -

    Cloud cluster ID.

  • verify (bool | str) -

    API key for cloud authentication.

  • cert (str | tuple) -

    Database name for request routing.

  • RETURN TYPE: requests.Response

    TLS verification setting.

  • Returns the current import-job progress payload.

    Client certificate path or (cert, key) tuple.

  • Examples

    Additional HTTP request options.

from pymilvus.bulk_writer import get_import_progress

resp = get_import_progress( url="https://api.cloud.zilliz.com.cn", api_key="YOUR_API_KEY", cluster_id="in0x-xxx", job_id="448996221577371648", )

print(resp.json())

Returns the current import-job progress payload.

HTTP response with import job progress details.

EXCEPTIONS:

  • MilvusException

    Raised when progress lookup fails.

Examples

from pymilvus.bulk_writer import get_import_progress

resp = get_import_progress(
url="https://api.cloud.zilliz.com.cn",
api_key="YOUR_API_KEY",
cluster_id="in0x-xxx",
job_id="448996221577371648",
)

print(resp.json())