(ctx context.Context, task Executable)
| 75 | } |
| 76 | |
| 77 | func AddTask(ctx context.Context, task Executable) error { |
| 78 | return queueInstance.Add(queue.NewTask(ctx, task.TaskID(), task.Title(), task)) |
| 79 | } |
| 80 | |
| 81 | func CancelTask(ctx context.Context, id string) error { |
| 82 | err := queueInstance.CancelTask(id) |
no test coverage detected