Reputation: 13
I have created a dynamic backend instance with backend.yaml file . Now i wants some way that it can shutdown after the request is completed.
Upvotes: 0
Views: 300
Reputation: 1824
Dynamic backend supposed to be shut after some idle time. But still if you want to shut it down, you can send a request to stop it. You can get code example from following answer:
https://stackoverflow.com/a/7224387/2594162
Upvotes: 0
Reputation: 11370
Backends are deprecated. You want to switch to Modules. You can use the idle_timeout parameter to have an instance shutdown after a preferred time of idleness:
https://developers.google.com/appengine/docs/python/modules/
Upvotes: 1