MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / GetTaskByID

Method GetTaskByID

inventory/task.go:41–41  ·  view source on GitHub ↗

GetTaskByID returns the task with the given ID.

(ctx context.Context, taskID int)

Source from the content-addressed store, hash-verified

39 GetPendingTasks(ctx context.Context, taskType ...string) ([]*ent.Task, error)
40 // GetTaskByID returns the task with the given ID.
41 GetTaskByID(ctx context.Context, taskID int) (*ent.Task, error)
42 // SetCompleteByID sets the task with the given ID to complete.
43 SetCompleteByID(ctx context.Context, taskID int) error
44 // List returns a list of tasks with the given args.

Callers 2

GetMethod · 0.65
DoMethod · 0.65

Implementers 1

taskClientinventory/task.go

Calls

no outgoing calls

Tested by

no test coverage detected