MCPcopy Create free account
hub / github.com/devfeel/dottask / RunOnce

Method RunOnce

queuetask.go:39–42  ·  view source on GitHub ↗

RunOnce do task only once

()

Source from the content-addressed store, hash-verified

37
38// RunOnce do task only once
39func (task *QueueTask) RunOnce() error {
40 err := task.handler(task.getTaskContext())
41 return err
42}
43
44// GetConfig get task config info
45func (task *QueueTask) GetConfig() *TaskConfig {

Callers

nothing calls this directly

Calls 1

getTaskContextMethod · 0.80

Tested by

no test coverage detected