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

Function NewCreateArchiveTaskFromModel

pkg/filemanager/workflows/archive.go:103–109  ·  view source on GitHub ↗
(task *ent.Task)

Source from the content-addressed store, hash-verified

101}
102
103func NewCreateArchiveTaskFromModel(task *ent.Task) queue.Task {
104 return &CreateArchiveTask{
105 DBTask: &queue.DBTask{
106 Task: task,
107 },
108 }
109}
110
111func (m *CreateArchiveTask) Do(ctx context.Context) (task.Status, error) {
112 dep := dependency.FromContext(ctx)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected