schedulerlogic

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTaskToScheduler

func AddTaskToScheduler(
	taskId taskmodel.TaskIdType,
	groupName string,
	taskType uint32,
	priority uint32,
) error

func DispatchSubtask

func DispatchSubtask(
	taskType uint32,
	callback taskmodel.ITaskSchedulerCallback,
	subtask *taskmodel.SubtaskBody,
) error

对子任务执行调度操作

func ExecSubtasks

func ExecSubtasks(
	taskId taskmodel.TaskIdType,
	subtasks *[]taskmodel.SubtaskBody,
	toPushbackSubtask *[]taskmodel.SubtaskBody,
) error

execute subtasks belonging to the same task

func GetTaskSchedulerCallback

func GetTaskSchedulerCallback(taskType uint32, callback *taskmodel.ITaskSchedulerCallback) error

func ScheduleSubtasks

func ScheduleSubtasks(
	retTaskId *taskmodel.TaskIdType,
	subtasks *[]taskmodel.SubtaskBody,
) error

if no task, retTaskId is 0, subtasks is empty

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL