重构 #4
| @@ -13,7 +13,7 @@ type Task interface { | ||||
| 	// 返回的 error 表示任务是否执行成功。调度器会根据返回的 error 是否为 nil 来决定任务状态。 | ||||
| 	Execute() error | ||||
|  | ||||
| 	// ParseParams 解析参数 | ||||
| 	// ParseParams 解析及校验参数 | ||||
| 	ParseParams(logger *logs.Logger, claimedLog *models.TaskExecutionLog) error | ||||
|  | ||||
| 	// OnFailure 定义了当 Execute 方法返回错误时,需要执行的回滚或清理逻辑。 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user