MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / GetFirst

Method GetFirst

agent/app/repo/task.go:18–18  ·  view source on GitHub ↗
(opts ...DBOption)

Source from the content-addressed store, hash-verified

16type ITaskRepo interface {
17 Save(ctx context.Context, task *model.Task) error
18 GetFirst(opts ...DBOption) (model.Task, error)
19 Page(page, size int, opts ...DBOption) (int64, []model.Task, error)
20 Update(ctx context.Context, task *model.Task) error
21 UpdateRunningTaskToFailed() error

Callers 5

CheckTaskIsExecutingFunction · 0.95
ReNewTaskFunction · 0.95
HandleOnceMethod · 0.95

Implementers 1

TaskRepoagent/app/repo/task.go

Calls

no outgoing calls

Tested by

no test coverage detected