GAE SDK 1.6.4 dev_appserver datastore flush

后端 未结 3 1525
闹比i
闹比i 2020-12-12 03:24

Hoping to get a comment from the GAE python team on this one.

Has something changed between 1.6.3, 1.6.4 with regards to the way the dev_appserver datastore is flush

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-12 04:18

    It looks like there have been some changes. I've been able to hack around the problem with the following:

    from google.appengine.tools import dev_appserver
    import atexit
    atexit.register(dev_appserver.TearDownStubs)
    

    This ensures the datastore is flushed on exit.

提交回复
热议问题