Background Tasks On App Engine
Solution 1:
You may use the Task Queue Python API.
Solution 2:
You can find more about cron jobs in Python App Engine here.
Solution 3:
Up and coming version of runtime will have some kind of periodic execution engine a'la cron. See this message on AppEngine group.
So, all the SDK pieces appear to work, but my testing indicates this isn't running on the production servers yet-- I set up an "every 1 minutes" cron that logs when it runs, and it hasn't been called yet
Hard to say when this will be available, though...
Solution 4:
Using the Deferred Python Library is the easiest way of doing background task on Appengine using Python which is built on top of TaskQueue API.
from google.appengine.ext import deferred
defdo_something_expensive(a, b, c=None):
logging.info("Doing something expensive!")
# Do your work here# Somewhere else
deferred.defer(do_something_expensive, "Hello, world!", 42, c=True)
Solution 5:
If you want to run background periodic tasks, see this question (AppEngine cron)
If your tasks are not periodic, see Task Queue Python API or Task Queue Java API
Post a Comment for "Background Tasks On App Engine"