Which CapabilitySet checks go with HRD?

24 views
Skip to first unread message

Philip

unread,
Mar 2, 2012, 9:37:34 PM3/2/12
to Google App Engine
I used to use...

from google.appengine.api.capabilities import CapabilitySet
if (settings.MAINTENANCE_MODE or
not CapabilitySet('datastore_v3',
capabilities=['write']).is_enabled() or
not CapabilitySet('memcache',
methods=['set']).is_enabled()):

...to determine if app engine was in maintenance mode.

Now that I have migrated apps to use HRD, instead of the old Master/
Slave datastore, what capability set checks should I use to determine
if the app should be set automatically in maintenance mode?

Mike Wesner

unread,
Mar 3, 2012, 8:10:52 PM3/3/12
to google-a...@googlegroups.com
Wow, I haven't even thought about capability api since we moved to HRD way back when.  HRD FTW!

Mike
Reply all
Reply to author
Forward
0 new messages