prefect.transactions
get_transaction
transaction
-
: An identifier to use for the transaction-
: The store to use for persisting the transaction result. If not provided,
a default store will be used based on the current run context.-
: The commit mode controlling when the transaction and
child transactions are committed-
: Whether to overwrite an existing transaction record in the store-
: Whether to write the result to the store on commit. If not provided,
will default will be determined by the current run context. If no run context is
available, the value of PREFECT_RESULTS_PERSIST_BY_DEFAULT
will be used.atransaction
-
: An identifier to use for the transaction-
: The store to use for persisting the transaction result. If not provided,
a default store will be used based on the current run context.-
: The commit mode controlling when the transaction and
child transactions are committed-
: Whether to overwrite an existing transaction record in the store-
: Whether to write the result to the store on commit. If not provided,
the default will be determined by the current run context. If no run context is
available, the value of PREFECT_RESULTS_PERSIST_BY_DEFAULT
will be used.IsolationLevel
CommitMode
TransactionState
BaseTransaction
set
name
: The name of the value to setvalue
: The value to setget
set
method.
Args:
name
: The name of the value to getdefault
: The default value to return if the value is not foundis_committed
is_rolled_back
is_staged
is_pending
is_active
prepare_transaction
add_child
get_parent
stage
get_active
Transaction
begin
read
reset
commit
run_hook
rollback
AsyncTransaction
begin
read
reset
commit
run_hook
rollback