I read the Google App Engine backend docs, but I still can't understand how to start/stop backends (dynamic backends) from Python (using URLFetch, I guess).
Could someone give me a code example? The backend will not be on the application's default version.
Use
appcfg
to start and stop backends. From the documentation:It depends on what type of backend you are using, "Resident Backends" can't be shutdown from the production environment only via the Admin Console or command-line while "Dynamic Backends" are shutdown after sitting idle for a few minutes.
So if you use Dynamic Backends you can just send a request telling it to stop what it is doing and it will be shutdown automatically.
http://code.google.com/intl/iw/appengine/docs/python/config/backends.html#Types_of_Backends
Edit
Example of how this might work:
And to stop it you would use: