Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Unticketed] Add ecs_background_task to analytics export job #3528

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions api/src/task/analytics/create_analytics_db_csvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")

Expand Down