Documentation ¶
Index ¶
- Constants
- func AddTaskToScheduler(taskId taskmodel.TaskIdType, groupName string, taskType uint32, ...) error
- func CheckGenerationStatus(taskId taskmodel.TaskIdType, toGenerate *bool, currentStep *uint32) error
- func Decr()
- func FinishGeneration(taskId taskmodel.TaskIdType) error
- func GenerationMainLoop(taskId taskmodel.TaskIdType, createParam *tasklogicdef.TaskCreateParam)
- func Incr()
- func IncrIfNotFull() bool
- func InitGeneration(taskId taskmodel.TaskIdType, step *uint32) error
- func IsFull() bool
- func MonitorTaskGenerationRoutine()
- func RefreshTaskGenerationStep(taskId taskmodel.TaskIdType, step uint32) error
- func StartTaskGenerationRoutine()
- func TaskGenerationRoutine(taskId taskmodel.TaskIdType, toRecover bool)
Constants ¶
View Source
const ( GenerationCountDefaultLimit = 200 GenerationCountLimitEnv = "GENERATION_ROUTINE_LIMIT" )
Variables ¶
This section is empty.
Functions ¶
func AddTaskToScheduler ¶
func AddTaskToScheduler( taskId taskmodel.TaskIdType, groupName string, taskType uint32, priority uint32, ) error
将文件添加到调度队列中
func CheckGenerationStatus ¶
func CheckGenerationStatus(taskId taskmodel.TaskIdType, toGenerate *bool, currentStep *uint32) error
检查任务生成的状态
func GenerationMainLoop ¶
func GenerationMainLoop( taskId taskmodel.TaskIdType, createParam *tasklogicdef.TaskCreateParam, )
任务插件的生成逻辑
func InitGeneration ¶
func InitGeneration(taskId taskmodel.TaskIdType, step *uint32) error
func RefreshTaskGenerationStep ¶
func RefreshTaskGenerationStep(taskId taskmodel.TaskIdType, step uint32) error
更新生成的step值
func TaskGenerationRoutine ¶
func TaskGenerationRoutine(taskId taskmodel.TaskIdType, toRecover bool)
任务的生成例程
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.