milvus-logo
LFAI
< Docs

list_bulk_insert_tasks()

This method lists all running bulk insert tasks of the specified connection.

Invocation

list_bulk_insert_tasks(limit=0, collection_name=None, timeout=None, using="default", **kwargs)

Parameters

ParameterDescriptionTypeRequired
limitNumber of records to returnIntegerFalse
collection_nameName of a collectionStringFalse
timetoutAn optional duration of time in seconds to allow for the RPC. If it is set to None, the client keeps waiting until the server responds or error occurs.IntegerFalse
usingAlias of the Milvus connection to be attached toStringFalse

Returns

Returns a list of BulkInsertState objects.

Example

from pymilvus import connections, utility, BulkInsertState
connections.connect()
tasks = utility.list_bulk_insert_tasks(collection_name=collection_name)
print(tasks)