I want to run a script every few seconds (4 or less) in google app engine to process user input and generate output. What is the best way to do this?
views:
52answers:
2I can only run cron jobs at most once every minute, though, and I need to run them every 1-4 seconds.
synapz
2010-06-07 01:55:10
Hmmm - yes. Perhaps the use Task Queue? You could chain tasks by adding a new task at the completion of the previous one.
Ash Kim
2010-06-07 02:06:49
David Underhill
2010-06-07 02:38:53
A:
Reconsider what you're doing. As Ash Kim says, you can do it with the task queue, but first take a close look if you really need to run a process like this. Is it possible to rewrite things so the task runs only when needed, or immediately, or lazily (that is, only when the results are needed)?
Nick Johnson
2010-06-08 13:00:24