未验证 提交 c2731ddd 编写于 作者: X xige-16 提交者: GitHub

[skip ci] Add comment for task state (#9757)

Signed-off-by: Nxige-16 <xi.ge@zilliz.com>
上级 a0fb28fe
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册