package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev

# Functions

CancelTask cancels a task.
GetCPUCountOfNode gets the CPU count of the managed node.
NotifyTaskChange is used to notify the scheduler manager that the task is changed, either a new task is submitted or a task is finished.
PauseTask pauses a task.
ResumeTask resumes a task.
RunWithRetry runs a function with retry, when retry exceed max retry time, it returns the last error met.
SubmitTask submits a task.
WaitTask waits for a task until it meets the matchFn.
WaitTaskDoneByKey waits for a task done by task key.
WaitTaskDoneOrPaused waits for a task done or paused.

# Variables

TaskChangedCh used to speed up task schedule, such as when task is submitted in the same node as the scheduler manager.