Skip to content

Commit

Permalink
DENG-476 - Update internet outages to reference main_v5 (#4432)
Browse files Browse the repository at this point in the history
  • Loading branch information
relud authored and irrationalagent committed Dec 11, 2023
1 parent 2040cf6 commit 1f696af
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 24 deletions.
8 changes: 4 additions & 4 deletions dags/bqetl_internet_outages.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@
internet_outages__global_outages__v1.set_upstream(
wait_for_copy_deduplicate_main_ping
)
wait_for_telemetry_derived__clients_daily__v6 = ExternalTaskSensor(
task_id="wait_for_telemetry_derived__clients_daily__v6",
wait_for_telemetry_derived__clients_daily_joined__v1 = ExternalTaskSensor(
task_id="wait_for_telemetry_derived__clients_daily_joined__v1",
external_dag_id="bqetl_main_summary",
external_task_id="telemetry_derived__clients_daily__v6",
external_task_id="telemetry_derived__clients_daily_joined__v1",
execution_delta=datetime.timedelta(seconds=18000),
check_existence=True,
mode="reschedule",
Expand All @@ -97,5 +97,5 @@
)

internet_outages__global_outages__v1.set_upstream(
wait_for_telemetry_derived__clients_daily__v6
wait_for_telemetry_derived__clients_daily_joined__v1
)
14 changes: 7 additions & 7 deletions dags/bqetl_main_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,6 @@
external_task_id="wait_for_telemetry_derived__clients_daily__v6",
)

ExternalTaskMarker(
task_id="bqetl_internet_outages__wait_for_telemetry_derived__clients_daily__v6",
external_dag_id="bqetl_internet_outages",
external_task_id="wait_for_telemetry_derived__clients_daily__v6",
execution_date="{{ (execution_date - macros.timedelta(days=-1, seconds=68400)).isoformat() }}",
)

ExternalTaskMarker(
task_id="jetstream__wait_for_clients_daily",
external_dag_id="jetstream",
Expand Down Expand Up @@ -222,6 +215,13 @@
execution_date="{{ (execution_date - macros.timedelta(seconds=7200)).isoformat() }}",
)

ExternalTaskMarker(
task_id="bqetl_internet_outages__wait_for_telemetry_derived__clients_daily_joined__v1",
external_dag_id="bqetl_internet_outages",
external_task_id="wait_for_telemetry_derived__clients_daily_joined__v1",
execution_date="{{ (execution_date - macros.timedelta(days=-1, seconds=68400)).isoformat() }}",
)

ExternalTaskMarker(
task_id="bqetl_search__wait_for_telemetry_derived__clients_daily_joined__v1",
external_dag_id="bqetl_search",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,6 @@ labels:
- '1640204'
scheduling:
dag_name: bqetl_internet_outages
# provide this value so that DAG generation does not have to dry run the
# query to get it, and that would be slow because main_v4 is referenced
referenced_tables:
- - moz-fx-data-shared-prod
- telemetry_stable
- main_v4
- - moz-fx-data-shared-prod
- telemetry_derived
- clients_daily_v6
- - moz-fx-data-shared-prod
- telemetry_stable
- health_v4
bigquery:
time_partitioning:
type: day
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ histogram_data_sample AS (
payload.processes.content.histograms.http_page_tls_handshake
).values AS tls_handshake,
FROM
telemetry_stable.main_v4
telemetry_stable.main_v5
WHERE
DATE(submission_timestamp) = @submission_date
-- Restrict to Firefox.
Expand Down

0 comments on commit 1f696af

Please sign in to comment.