diff --git a/api/src/task/analytics/create_analytics_db_csvs.py b/api/src/task/analytics/create_analytics_db_csvs.py index a0360d0a7..1af8389d9 100644 --- a/api/src/task/analytics/create_analytics_db_csvs.py +++ b/api/src/task/analytics/create_analytics_db_csvs.py @@ -9,6 +9,7 @@ import src.adapters.db as db import src.adapters.db.flask_db as flask_db from src.db.models import metadata as api_metadata +from src.task.ecs_background_task import ecs_background_task from src.task.task import Task from src.task.task_blueprint import task_blueprint from src.util import file_util @@ -31,6 +32,7 @@ ) @click.option("--tables-to-extract", "-t", help="Tables to extract to a CSV file", multiple=True) @flask_db.with_db_session() +@ecs_background_task(task_name="create-analytics-db-csvs") def create_analytics_db_csvs(db_session: db.Session, tables_to_extract: list[str]) -> None: logger.info("Create extract CSV file start")