Runs the user-provided function inside transaction, with a specified
number of retries.
Args:
retries: number of retries (not counting the initial try)
function: a function to be run inside the transaction on all remaining
arguments
*args: positional arguments for function.
**kwargs: keyword arguments for function.
Returns
the function's return value, if any
Raises
TransactionFailedError, if the transaction could not be committed.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-09-30 UTC."],[[["This function, `RunInTransactionCustomRetries`, executes a user-defined function within a datastore transaction."],["The `retries` parameter determines the number of attempts to run the transaction, excluding the initial attempt."],["The function accepts positional and keyword arguments to be passed to the user-provided function that will be run in the transaction."],["The return value from the user-provided function will be returned if there is no failure during the execution."],["If the transaction fails to commit, a `TransactionFailedError` is raised."]]],[]]