With the upcoming maintenance, I want to add a check at the start of
the handler to see if I should display a maintenance notice. This will
run on every request, so it would be good to use as lightweight a
check as possible. The documentation says CapabilityDisabledError is
thrown by db.Model.put(), db.Model.delete(), and
db.run_in_transaction().

My question is this: can I use run_in_transaction() with a dummy
function - testing without the overhead of actually doing a put()?

I realise that in this case memcache is also being disabled, so I can
test by doing a memcache.set() instead, but it would be nice to
develop a function that can be called to test both, for cases when
maintenance only affects one or the other. Also could a Googler
comment on how syncronised the disabling of datastore and memcache
are? Milliseconds, seconds, or minutes?

--~--~---------~--~----~------------~-------~--~----~
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