Greg
unread,Jun 8, 2009, 1:58:06 AM6/8/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google App Engine
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?