开发者

Transactions behaviour when request times out. [google app engine]

开发者 https://www.devze.com 2022-12-10 11:59 出处:网络
Google app engine has this useful little function in its db class, db.run_in_transaction() Which is suppos开发者_开发知识库e to garentee that your method will be rolled back if an exception is rai

Google app engine has this useful little function in its db class,

db.run_in_transaction()

Which is suppos开发者_开发知识库e to garentee that your method will be rolled back if an exception is raised. "If the function raises an exception, the transaction is rolled back."

What happens if my request times out in the middle of its execution? Will it roll back?


Yes, the timeout raises an exception, so that also will mean a rollback.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号