View source on GitHub |
A decorator that insures a function is run outside a transaction.
google.appengine.api.datastore.NonTransactional(
_func=None, allow_existing=True
)
If there is an existing transaction (and allow_existing=True
), the existing
transaction is paused while the function is executed.
Args | |
---|---|
_func
|
do not use |
allow_existing
|
If false, throw an exception if called from within a transaction |
Returns | |
---|---|
A wrapper for the decorated function that ensures it runs outside a transaction. |