python - Starting app engine modules in Google App Engine -
app engine "modules" new (and experimental, , confusingly-named) feature in app engine: https://developers.google.com/appengine/docs/python/modules. developers being urged convert use of "backends" feature use of new feature.
there seem 2 ways start instance of module: send http request (i.e. @ http://modulename.appname.appspot.com
appname
application , modulename
module), or call google.appengine.api.modules.start_module()
.
the simple way
the simple way start instance of module seem to create http request. however, in case results in 2 outcomes, neither of want:
if use name of backend application defines, i.e.
http://backend.appname.appspot.com
, request routed backend , denied (because backend access defined default private).anything else results in request being routed sole frontend instance of default module, using random character strings module names, such
http://sdlsdjfsldfsdf.appname.appspot.com
. holds made-up instance ids such in case ofhttp://99.sdlsdjfsldfsdf.appname.appspot.com
, etc. , of course (this problem) actual name of module well.
starting via api
the documentation says calling start_module()
name of module , version should cause specified version of specified module start up. however, i'm getting unexpectedstateerror
whenever call function valid arguments.
the unfortunate state of affairs
because can't work, i'm wondering if there subtlety documentation might not have mentioned. setup pretty straightforward, i'm wondering if widespread problem has found solution.
it turns out versions cannot numeric. problem seems have been happening because our module's version "1" , not (for example) "v1".
Comments
Post a Comment