16 lines
271 B
Go
16 lines
271 B
Go
|
|
package taskdebug
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"devops/server/apps/task"
|
||
|
|
)
|
||
|
|
|
||
|
|
// 实现一个 task_debug 任务
|
||
|
|
|
||
|
|
type TaskDebugRunner struct{}
|
||
|
|
|
||
|
|
func (t *TaskDebugRunner) Run(ctx context.Context, spec *task.TaskSpec) (*task.Task, error) {
|
||
|
|
// 使用脚本执行
|
||
|
|
return nil, nil
|
||
|
|
}
|