mirror of https://github.com/milvus-io/milvus.git
[skip ci]Add comment for assignTask in indexcoord (#12788)
Signed-off-by: Cai.Zhang <cai.zhang@zilliz.com>pull/12799/head
parent
4a8d8010c0
commit
c3e0299f06
|
@ -768,6 +768,8 @@ func (i *IndexCoord) watchMetaLoop() {
|
|||
}
|
||||
}
|
||||
|
||||
// assignTask sends the index task to the IndexNode, it has a timeout interval, if the IndexNode doesn't respond within
|
||||
// the interval, it is considered that the task sending failed.
|
||||
func (i *IndexCoord) assignTask(builderClient types.IndexNode, req *indexpb.CreateIndexRequest) bool {
|
||||
ctx, cancel := context.WithTimeout(i.loopCtx, i.reqTimeoutInterval)
|
||||
defer cancel()
|
||||
|
|
Loading…
Reference in New Issue