[skip ci] Add comment for taskScheduler close (#9756)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
xige-16 2021-10-12 23:38:43 +08:00 committed by GitHub
parent 83c3a677cc
commit a0fb28fea4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -822,6 +822,7 @@ func (scheduler *TaskScheduler) Start() error {
return nil
}
// Close function stops the scheduleLoop and the processActivateTaskLoop
func (scheduler *TaskScheduler) Close() {
scheduler.cancel()
scheduler.wg.Wait()