I launched a task using the delayed package
The only problem is that the task is failing (ooops!) and is keeping trying it again and again. I am aware of the RetryCount
field but I would like to force kill the task myself.
Does anyone knows a way to do it ?
The below samples from the App Engine docs would indicate that all your delay tasks created via delay.Function#Call
should go to the default
queue, and thus be deletable via the admin interface. If not, I would call it bug.
In fact, our delay tasks went to the default
queue, and we could delete them with the admin interface.
func (f *Function) Call(c appengine.Context, args ...interface{})
Call invokes a delayed function.
f.Call(c, ...)
is equivalent to
t, _ := f.Task(...) taskqueue.Add(c, t, "")
func Add(c appengine.Context, task *Task, queueName string) (*Task, error)
Add adds the task to a named queue. An empty queue name means that the default queue will be used. Add returns an equivalent Task with defaults filled in, including setting the task's Name field to the chosen name if the original was empty.