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

Function NewImportTaskFromModel

pkg/filemanager/workflows/import.go:84–90  ·  view source on GitHub ↗
(task *ent.Task)

Source from the content-addressed store, hash-verified

82}
83
84func NewImportTaskFromModel(task *ent.Task) queue.Task {
85 return &ImportTask{
86 DBTask: &queue.DBTask{
87 Task: task,
88 },
89 }
90}
91
92func (m *ImportTask) Do(ctx context.Context) (task.Status, error) {
93 dep := dependency.FromContext(ctx)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected