On Jun 23, 10:27 pm, Ryan <[email protected]> wrote: > I have a task that resubmits itself, so that it loops over and over > indefinitely. Every time I start dev_appserver.py, I have to open > this url to get it going: http:///localhost:8080/loop?key=0. Is there > some automated way to do this so that it starts when I run > dev_appserver.py, or when my app gets uploaded?
A task that needs to run on a regular schedule sounds like a great job for cron, rather than tasks that spawn more tasks forever. In my opinion, task queue chaining is usually better suited for running a series of tasks that have some anticipated end when there's no more work to do, as opposed to a task that needs to be constantly running forever. (On the other hand, it seems likely that having a neverending looping process doing stuff when no one's even using your application could be an inefficient design...) > While I am on the topic of tasks, is there some way to automatically > execute the task queue built into dev_appserver? The documentation > seems to say I must do it manually, but I hear whispers that the java > guys can automate it. I found a script to do it, but it's a pain to > run every time I start things up again. > > Thanks! The dev_appserver in the current SDK should run tasks automatically. What version are you running? -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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?hl=en.
