Python 3.10 is now available in preview.

google.appengine.api.datastore.NonTransactional

A decorator that insures a function is run outside a transaction.

If there is an existing transaction (and allow_existing=True), the existing transaction is paused while the function is executed.

_func do not use
allow_existing If false, throw an exception if called from within a transaction

A wrapper for the decorated function that ensures it runs outside a transaction.