How to dispatch to a specific version of a module?

64 views
Skip to first unread message

Paul Canning

unread,
Apr 17, 2015, 10:34:40 AM4/17/15
to google-a...@googlegroups.com
Is there a way to route URLs, Tasks or CRON jobs to specific module versions?

E.g in dispatch.yaml

- url: "*/mobile/*"
  module: mobile

Say I have two versio n of the mobile module, alpha and beta.

Can I specify to send the request to alpha mobile module?

Or will it always send it to the default version (set in the dashboard)?

hiroshi saito

unread,
Apr 17, 2015, 10:00:03 PM4/17/15
to google-a...@googlegroups.com
> Can I specify to send the request to alpha mobile module?
> Or will it always send it to the default version (set in the dashboard)?

It seems that you cannot specify target version in dispatch.yaml,
but it is not always to be dispatched to "default" version.

From my experiences, GAE will dispatch to same version of module if
available. If same version doesn't exist, it dispatch to default
version.

With your dispatch.yaml.
If you have the "alpha" version in both "default" and "mobile" modules,
it will dispatch http://alpha.yourapp.appspot.com/mobile/* to "alpha"
version of "mobile" module.

If you have "beta" version of "default" module, but not for "mobile" module,
it will dispatch http://beta.yourapp.appspot.com/mobile/* to "default"
version of "mobile" module.

I think it try to dispatch to "beta", but not found, then use
"default" version as failsafe.
e.g. Even without dispatch.yml,
http://version-or-module-that-not-exists.yourapp.appspot.com/ will be
dispatched to default version of default module.

Gadi

unread,
Jun 18, 2015, 1:46:40 AM6/18/15
to google-a...@googlegroups.com

Hiroshi Saito,
You are right !
It would help to clarify the docs on this... 
Reply all
Reply to author
Forward
0 new messages