mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add comment for task state (#9757)
Signed-off-by: xige-16 <xi.ge@zilliz.com>pull/9763/head
parent
a0fb28fea4
commit
c2731dddff
|
@ -183,6 +183,7 @@ func (bt *BaseTask) Reschedule(ctx context.Context) ([]task, error) {
|
|||
return nil, nil
|
||||
}
|
||||
|
||||
// State returns the state of task, such as taskUndo, taskDoing, taskDone, taskExpired, taskFailed
|
||||
func (bt *BaseTask) State() taskState {
|
||||
bt.stateMu.RLock()
|
||||
defer bt.stateMu.RUnlock()
|
||||
|
|
Loading…
Reference in New Issue