views:

52

answers:

2

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?

+1  A: 
Ash Kim
I can only run cron jobs at most once every minute, though, and I need to run them every 1-4 seconds.
synapz
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
David Underhill
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