Hi all,

I am just trying out the new Task Queue API for Java (many thanks!!!!)
and the insertion of tasks into a queue seems to work fine, but I
cannot see them being exectuted :-) Maybe I am not understanding a
trivial thing here...

This is the queue.xml:


<?xml version="1.0" encoding="UTF-8"?>
<queue-entries>
  <queue>
    <name>updateTweets</name>
    <rate>5/s</rate>
  </queue>
</queue-entries>


It shows up correctly in the dashboard.

Next, I created a simple Grails action to insert a task into this
queue:

    def triggerQueue = {
        Queue queue = QueueFactory.getQueue('updateTweets')
        TaskHandle handle = queue.add(url("/play/updateQueue").param
("screenName", 'hansamann'))
        render "Queued a new task for updateTweets queue..."
    }

This seems to work. I can call the triggerQueue action and it will
render the specified string, meaning no exceptions were thrown. I can
also see that the number of tasks in the queue in the dashboard has
been increased.

I can also call the task web hook /play/updateQueue directly, it
works. This is the implementation of that action:

    def updateQueue = {

        mailService.sendAdminMail("queue test - screenName $
{params.screenName}", "${params.screenName}")
        render 'OK'

    }

Once I call this manually, I get an email just as supposed.

---

It is now about 30 mins since 2 tasks have been added to the queue, I
got no emails. The logs do not show exceptions that are task-specific.
The app-id is 'groovytweets'.

Has anyone else successfully tried it out and can post a quick
description?

Cheers
Sven

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to