任务调度器关于任务执行部分实现(没测没检查, 但应该实现完了)

This commit is contained in:
2025-09-17 20:02:40 +08:00
parent e6047f6b6e
commit ceba0c280e
8 changed files with 392 additions and 36 deletions

View File

@@ -33,6 +33,11 @@ const (
TaskTypeWaiting TaskType = "waiting" // 等待任务
)
const (
// 这个参数是 TaskPlanAnalysis 类型的 Task Parameters 中用于记录plan_id的字段的key
ParamsPlanID = "plan_id"
)
// Plan 代表系统中的一个计划,可以包含子计划或任务
type Plan struct {
gorm.Model