Skip to content

Commit

Permalink
run metrics at 21.00, not in the middle of the day
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Nov 7, 2024
1 parent 352a1ac commit 6b578be
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions terraform/modules/services/airflow/dags/uk/dayafter-dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
max_active_tasks=10,
) as dag2:

dag2.doc_md = "Get GSP PVLive updated values, and then triggers metrics DAG"
dag2.doc_md = "Get GSP PVLive updated values"

gsp_day_after = EcsRunTaskOperator(
task_id=f'{region}-gsp-day-after',
Expand All @@ -82,6 +82,17 @@
task_concurrency=10,
)

gsp_day_after

with DAG(
f'{region}-metrics-day-after',
schedule_interval="0 21 * * *",
default_args=default_args,
concurrency=10,
max_active_tasks=10,
) as dag3:
dag3.doc_md = "Get Metrics"

metrics = EcsRunTaskOperator(
task_id=f'{region}-metrics',
task_definition='metrics',
Expand All @@ -99,4 +110,4 @@
task_concurrency=10,
)

gsp_day_after >> metrics
metrics

0 comments on commit 6b578be

Please sign in to comment.