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

Method CreateTask

pkg/cluster/node.go:37–37  ·  view source on GitHub ↗

CreateTask creates a task on the node. It does not have effect on master node.

(ctx context.Context, taskType string, state string)

Source from the content-addressed store, hash-verified

35 IsMaster() bool
36 // CreateTask creates a task on the node. It does not have effect on master node.
37 CreateTask(ctx context.Context, taskType string, state string) (int, error)
38 // GetTask returns the task summary of the task with the given id.
39 GetTask(ctx context.Context, id int, clearOnComplete bool) (*SlaveTaskSummary, error)
40 // CleanupFolders cleans up the given folders on the node.

Callers 6

createDownloadTaskMethod · 0.65
slaveTransferMethod · 0.65
SlaveDownloadTaskCreateFunction · 0.65

Implementers 1

nodeBasepkg/cluster/node.go

Calls

no outgoing calls

Tested by

no test coverage detected