RunOnce do task only once
()
| 37 | |
| 38 | // RunOnce do task only once |
| 39 | func (task *QueueTask) RunOnce() error { |
| 40 | err := task.handler(task.getTaskContext()) |
| 41 | return err |
| 42 | } |
| 43 | |
| 44 | // GetConfig get task config info |
| 45 | func (task *QueueTask) GetConfig() *TaskConfig { |
nothing calls this directly
no test coverage detected