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

[PRODUCTION] Update production Airflow environment #235

Merged
merged 3 commits into from
Nov 1, 2023
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
9 changes: 7 additions & 2 deletions dags/marts_tables_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from airflow import DAG
from airflow.models.variable import Variable
from stellar_etl_airflow.build_cross_dependency_task import build_cross_deps
from stellar_etl_airflow.build_dbt_task import build_dbt_task
from stellar_etl_airflow.default import get_default_dag_args, init_sentry

Expand All @@ -12,12 +13,16 @@
default_args=get_default_dag_args(),
start_date=datetime.datetime(2015, 9, 30),
description="This DAG runs dbt to create the tables for the models in marts/ but not any marts subdirectories.",
schedule_interval="0 11 * * *", # Daily 11 AM UTC
schedule_interval="0 17 * * *", # Daily 11 AM UTC
params={},
catchup=True,
max_active_runs=1,
)

wait_on_partnership_assets_dag = build_cross_deps(
dag, "wait_on_partnership_assets_pipeline", "partnership_assets_dag", time_delta=10
)

# tasks for staging tables for marts
stg_history_transactions = build_dbt_task(dag, "stg_history_transactions")
stg_history_assets = build_dbt_task(dag, "stg_history_assets")
Expand Down Expand Up @@ -48,7 +53,7 @@
network_stats_agg
liquidity_providers

int_meaningful_asset_prices >> int_asset_stats_agg
wait_on_partnership_assets_dag >> int_meaningful_asset_prices >> int_asset_stats_agg
stg_excluded_accounts >> int_asset_stats_agg
stg_xlm_to_usd >> int_asset_stats_agg
int_asset_stats_agg >> asset_stats_agg
Expand Down