Part of lp.translations.utilities.translationmerger View In Hierarchy
For normal operation, every tenth intermediate transaction is actually committed. At the end, the final transaction is committed.
For dry runs, no transactions are committed and the final transaction is aborted.
Method | __init__ | Constructor. |
Method | endTransaction | End this transaction and start a new one. |
Parameters | txn | The transaction to commit or abort. |
dry_run | If true, this is a dry run. |
Parameters | intermediate | Whether this is an intermediate commit.
Dry-run mode aborts transactions rather than committing
them; where doing that may break dependencies between steps
of the algorithm, pass True so that the abort can be
skipped. |