user3800211
user3800211

Reputation: 13

Shutting down dynamic backend instance in google app engine(python) by sending http request or code?

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

Answers (2)

Sovon
Sovon

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

GAEfan
GAEfan

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

Related Questions