[skip ci]Add comment for assignTask in indexcoord (#12788)

Signed-off-by: Cai.Zhang <cai.zhang@zilliz.com>
pull/12799/head
cai.zhang 2021-12-06 18:29:54 +08:00 committed by GitHub
parent 4a8d8010c0
commit c3e0299f06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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()