App Engine Python ndb map_async strange behavior for deletes -


I map_async (using through remote_api) a very simple callback tasklet that The key is removed with the key that has been passed, however, all the institutions are always always removed not in most cases, for all the institutions Has to be removed. Code:

  @ ndb.tasklet def delete_key_tasklet (key): yield key.delete_async () class person (ndb.Model): name1 = ndb.StringProperty () NAME2 = ndb.StringProperty () @classmethod def delete_persons_async (CLS, ancestor_key, name): q = cls.query (ancestor = ancestor_key) q = q.filter (ndb.OR (cls.name1 == name, cls.name2 == name)) return q. map_async (delete_key_tasklet, keys_only = true), for example   

, if I use the following query:

  Person.delete_persons_async (ancestor_key, 'David') .get_result ()   

I hope all the individuals organizations with the name are removed.

  • to see if perhaps not is an issue with the final homologation I memcache several minutes waiting times and flushed disappeared if institutions end.
  • If I change the tasklet to yield key.get_async () it will properly capture all the entities.

    Such:

    1. Any thoughts about what's going on?
    2. Is this remotely deleted?

      You either need to wrap the entire operation or make a clear outcome call

      If the request handler may then turns very quickly, anytime < / P> / div>

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -