chore(dao/command): Add transaction decorator to try to enforce "unit of work" (#24969)

This commit is contained in:
John Bodley
2024-06-28 12:33:56 -07:00
committed by GitHub
parent a3f0d00714
commit 8fb8199a55
151 changed files with 681 additions and 916 deletions

View File

@@ -20,6 +20,7 @@ import click
from flask.cli import with_appcontext
import superset.utils.database as database_utils
from superset.utils.decorators import transaction
logger = logging.getLogger(__name__)
@@ -89,6 +90,7 @@ def load_examples_run(
@click.command()
@with_appcontext
@transaction()
@click.option("--load-test-data", "-t", is_flag=True, help="Load additional test data")
@click.option("--load-big-data", "-b", is_flag=True, help="Load additional big data")
@click.option(