listRefreshExternalCollectionJobs()

This operation lists all refresh jobs for external collections. You can filter by collection name and database name.

await milvusClient.listRefreshExternalCollectionJobs(data?: ListRefreshExternalCollectionJobsReq)

Request Syntax

await milvusClient.listRefreshExternalCollectionJobs({
    collection_name?: string,
    db_name?: string,
    timeout?: number,
    client_request_id?: string,
})

PARAMETERS:

  • collection_name (string) - Optional filter by collection name.

  • db_name (string) - Optional filter by database name.

  • timeout (number) - An optional duration of time in milliseconds to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or an error occurs. Default is undefined.

  • client_request_id (string) - A trace ID for request tracking. Optional.

RETURNS Promise

This method returns a promise that resolves to a ListRefreshExternalCollectionJobsResponse object.

{
    jobs: RefreshExternalCollectionJobInfo[],
    status:  ResStatus
}

PARAMETERS:

  • jobs (RefreshExternalCollectionJobInfo[]) - A list of refresh jobs that match the requested database and collection filters. For the full RefreshExternalCollectionJobInfo field reference, refer to the getRefreshExternalCollectionProgress() doc.

  • ResStatus A ResStatus object.

    • code (number) -

      A code that indicates the operation result. It remains 0 if this operation succeeds.

    • error_code (string | number) -

      An error code that indicates an occurred error. It remains Success if this operation succeeds.

    • reason (string) -

      The reason that indicates the reason for the reported error. It remains an empty string if this operation succeeds.

Example

import { MilvusClient } from '@zilliz/milvus2-sdk-node';

const client = new MilvusClient({
    address: 'localhost:19530',
    token: 'root:Milvus',
});

const res = await client.listRefreshExternalCollectionJobs({
    collection_name: 'my_external_collection',
});

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?