I'm happy to hear explanations. I didn't change the code I just did an
update withouth changing version.


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of nickmilon
Sent: Friday, May 13, 2011 2:58 PM
To: Google App Engine
Subject: [google-appengine] Re: 1.5 improvements Make me less scared of
Pricing

@Brandon Wirtz
All this can't be explained by you upgrading to 1.5  as @Stephen writes.
@Vinuth Madinur +1 for all your  points especially minimum granularity.

;-)
Nick Milon

On May 13, 4:28 pm, Tim <[email protected]> wrote:
> Currently all my python scripts use the script-or-module mechanism as 
> recommended by the docs
>
> application = webapp.WSGIApplication([('/somepage',
> SomeHandler), ('/anotherpage', AnotherHandler)], debug=True)
>
> # GAE will look for a main() with no args and, if found, caches this 
> script # so we supply one to make the requests more efficient def 
> main():
>     run_wsgi_app(application)
>
> # How a file can be both a script and an imprtable module...
> if __name__ == "__main__":
>     main()
>
> I'm wondering if I rename that function to not be "main", hence making 
> the page just a script and no longer an importable module, will that 
> effectively kill the instance after the script runs (my load time is 
> minimal - most of my pages simply do datatore-query -> JSON or the 
> reverse) and so minimise my instance hours ??
>
> Would it be possible to add something to the GAE API's so that an 
> instance can suggest how long it would like to hang around for, or an 
> ability to explicitly request to kill itself ?
>
> --
> T

--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to