I have problem with Task Queues. I couldn't trigger my task queue handler
method in Google Endpoints.
Im kinda new to App Engine.
This is how i add my task queues
Queue q = QueueFactory.getDefaultQueue();
TaskOptions opt = TaskOptions.Builder.withUrl("/_ah/api/worker");
q.add(opt);
And i tried a lot of urls like ;
/worker
/_ah/spi/{package}.worker
/_ah/api/worker
After doing that,I can see all tasks in AppEngine Tasks but all of them
returns 404 and retrying forever.
These are my handlers what I tried.
@ApiMethod(name = "worker",path = "/worker")
public void Worker(HttpServletRequest request) throws ServletException,
IOException {
try {
// ...
Logs.getLogger().warning("DONE !");
}
catch (Exception ex){
Logs.getLogger().warning(ex.getMessage());
}
}
public class worker extends HttpServlet {
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
super.doPost(req, resp);
// ...
Logs.getLogger().warning("DONE !");
}
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
super.doGet(req, resp);
// ...
Logs.getLogger().warning("DONE !");
}
}
Tnx.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/9315d54e-fd2c-42a4-909c-ed13e2271aba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.