Hi, Did you specifically read http://code.google.com/appengine/docs/java/tools/localunittesting.html#Writing_Task_Queue_Tests for local tests
Via the provided sample, you can access the scheduling params of your task regards didier On Jun 2, 2:04 pm, ramesh <[email protected]> wrote: > Hi All, > > I am new to Google App Engine. I was trying to add task to queue. > > Its adding task to queue but task never gets executed. > > To add task to queue, i did following steps. > > 1) created queue.xml as... > > <queue-entries> > <queue> > <name>readwebsitequeue</name> > <rate>20/s</rate> > <max-concurrent-requests>1</max-concurrent-requests> > </queue> > </queue-entries> > > 2) created one servlet by extending HTTPServlet. (URL pattern in > web.xml for this servlet is > /testtask) > inside doGet(),i written following code > > Queue q = QueueFactory.getQueue("readwebsitequeue"); > q.add(TaskOptions.Builder.withUrl("/test").param("key", "123")); > > 3) created one more servlet by extending HTTPServlet (URL pattern in > web.xml for this servlet is > /task) > > inside doGet(),i written my business logic say some sending > emails. > > Now, when i execute my first servlet with url /testtask, it is adding > task to queue . But when task(i.e test) will execute automatically? > > I am running it locally. I am able to see tasks > inhttp://localhost:8888/_ah/admin/taskqueue > > I am unable to understood document provided by google app engine. > > Please help me with example. > > Thanks > Ramesh -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
