Python 3.9 is now generally available.

google.appengine.api.datastore_errors.TransactionFailedError

Raised by RunInTransaction methods when the transaction could not be committed, even after retrying.

Inherits From: Error, expected_type

This is usually due to high contention.