mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
[skip ci] Add comment for task state (#9757)
Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
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…
x
Reference in New Issue
Block a user