View source on GitHub |
Returns the ID of the current instance.
google.appengine.api.modules.get_current_instance_id()
If this is instance 2 of version "v1" of module "module5" for app "my-app", this function will return "2".
This is only valid for automatically-scaled modules; otherwise, None
is
returned.
Returns | |
---|---|
String containing the ID of the instance, or None if this is not an
automatically-scaled module.
|