[skip ci] Add comment for enqueue (#9593)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
xige-16 2021-10-09 19:54:16 +08:00 committed by GitHub
parent 91641b75d3
commit 152d7dfa92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -422,6 +422,7 @@ func (scheduler *TaskScheduler) unmarshalTask(t string) (task, error) {
return newTask, nil
}
// Enqueue pushs a trigger task to triggerTaskQueue and assigns task id
func (scheduler *TaskScheduler) Enqueue(tasks []task) {
for _, t := range tasks {
id, err := scheduler.taskIDAllocator()