Skip to content

Commit

Permalink
Move operators to project root
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaeld committed Sep 18, 2023
1 parent 4798c75 commit 1e2b42e
Show file tree
Hide file tree
Showing 24 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion dags/adm_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from airflow.sensors.external_task import ExternalTaskSensor

from utils.constants import ALLOWED_STATES, FAILED_STATES
from utils.operators.gcp_container_operator import GKEPodOperator
from operators.gcp_container_operator import GKEPodOperator
from utils.tags import Tag

DOCS = """\
Expand Down
2 changes: 1 addition & 1 deletion dags/bhr_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

from utils.constants import ALLOWED_STATES, FAILED_STATES
from utils.dataproc import get_dataproc_parameters, moz_dataproc_pyspark_runner
from utils.operators.gcp_container_operator import GKEPodOperator
from operators.gcp_container_operator import GKEPodOperator
from utils.tags import Tag

default_args = {
Expand Down
4 changes: 2 additions & 2 deletions dags/burnham.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
from airflow import DAG
from airflow.operators.python import PythonOperator

from utils.operators.bq_sensor import BigQuerySQLSensorOperator
from utils.operators.gcp_container_operator import GKEPodOperator
from operators.bq_sensor import BigQuerySQLSensorOperator
from operators.gcp_container_operator import GKEPodOperator
from utils.tags import Tag

DOCS = """\
Expand Down
2 changes: 1 addition & 1 deletion dags/clean_gke_pods.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from airflow import DAG

from utils.operators.gcp_container_operator import GKEPodOperator
from operators.gcp_container_operator import GKEPodOperator
from utils.tags import Tag

docs = """
Expand Down
2 changes: 1 addition & 1 deletion dags/crash_symbolication.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from utils.constants import ALLOWED_STATES, FAILED_STATES
from utils.dataproc import get_dataproc_parameters, moz_dataproc_pyspark_runner
from utils.operators.gcp_container_operator import GKEPodOperator
from operators.gcp_container_operator import GKEPodOperator
from utils.tags import Tag

default_args = {
Expand Down
2 changes: 1 addition & 1 deletion dags/data_monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from airflow import DAG

from utils.operators.gcp_container_operator import GKEPodOperator
from operators.gcp_container_operator import GKEPodOperator
from utils.tags import Tag

DOCS = """\
Expand Down
2 changes: 1 addition & 1 deletion dags/dim_active_users_aggregates.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from airflow.sensors.external_task import ExternalTaskSensor

from utils.constants import ALLOWED_STATES, FAILED_STATES
from utils.operators.gcp_container_operator import GKEPodOperator
from operators.gcp_container_operator import GKEPodOperator
from utils.tags import Tag

default_args = {
Expand Down
2 changes: 1 addition & 1 deletion dags/experiment_auto_sizing.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from airflow.sensors.external_task import ExternalTaskSensor

from utils.constants import ALLOWED_STATES, FAILED_STATES
from utils.operators.gcp_container_operator import GKEPodOperator
from operators.gcp_container_operator import GKEPodOperator
from utils.tags import Tag

default_args = {
Expand Down
2 changes: 1 addition & 1 deletion dags/firefox_public_data_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
moz_dataproc_pyspark_runner,
)
from utils.gcp import bigquery_etl_query
from utils.operators.gcp_container_operator import GKEPodOperator
from operators.gcp_container_operator import GKEPodOperator
from utils.tags import Tag

default_args = {
Expand Down
2 changes: 1 addition & 1 deletion dags/glam_glean_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from airflow.utils.task_group import TaskGroup

from utils.constants import ALLOWED_STATES, FAILED_STATES
from utils.operators.gcp_container_operator import GKENatPodOperator
from operators.gcp_container_operator import GKENatPodOperator
from utils.tags import Tag

default_args = {
Expand Down
2 changes: 1 addition & 1 deletion dags/jetstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from airflow.sensors.external_task import ExternalTaskSensor

from utils.constants import ALLOWED_STATES, FAILED_STATES
from utils.operators.gcp_container_operator import GKEPodOperator
from operators.gcp_container_operator import GKEPodOperator
from utils.tags import Tag

default_args = {
Expand Down
2 changes: 1 addition & 1 deletion dags/merino_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from airflow.hooks.base import BaseHook
from airflow.operators.email import EmailOperator

from utils.operators.gcp_container_operator import GKEPodOperator
from operators.gcp_container_operator import GKEPodOperator
from utils.tags import Tag

DOCS = """\
Expand Down
2 changes: 1 addition & 1 deletion dags/operational_monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from airflow import DAG
from airflow.sensors.external_task import ExternalTaskSensor

from utils.operators.gcp_container_operator import GKEPodOperator
from operators.gcp_container_operator import GKEPodOperator
from utils.tags import Tag

docs = """
Expand Down
2 changes: 1 addition & 1 deletion dags/overwatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from airflow import DAG

from utils.operators.gcp_container_operator import GKEPodOperator
from operators.gcp_container_operator import GKEPodOperator

default_args = {
"owner": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion dags/partybal.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

from airflow import DAG

from utils.operators.gcp_container_operator import GKEPodOperator
from operators.gcp_container_operator import GKEPodOperator
from utils.tags import Tag

default_args = {
Expand Down
2 changes: 1 addition & 1 deletion dags/probe_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from airflow.providers.http.operators.http import SimpleHttpOperator
from airflow.utils.weekday import WeekDay

from utils.operators.gcp_container_operator import GKEPodOperator
from operators.gcp_container_operator import GKEPodOperator
from utils.tags import Tag

DOCS = """\
Expand Down
2 changes: 1 addition & 1 deletion dags/socorro_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from airflow.utils.task_group import TaskGroup

from utils.dataproc import moz_dataproc_pyspark_runner
from utils.operators.gcp_container_operator import GKEPodOperator
from operators.gcp_container_operator import GKEPodOperator
from utils.tags import Tag

"""
Expand Down
2 changes: 1 addition & 1 deletion dags/taar_daily.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
moz_dataproc_jar_runner,
moz_dataproc_pyspark_runner,
)
from utils.operators.gcp_container_operator import GKEPodOperator
from operators.gcp_container_operator import GKEPodOperator
from utils.tags import Tag

TAAR_ETL_STORAGE_BUCKET = Variable.get("taar_etl_storage_bucket")
Expand Down
2 changes: 1 addition & 1 deletion dags/taar_weekly.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from airflow.operators.subdag import SubDagOperator

from utils.dataproc import moz_dataproc_pyspark_runner
from utils.operators.gcp_container_operator import GKEPodOperator
from operators.gcp_container_operator import GKEPodOperator
from utils.tags import Tag

taar_ensemble_cluster_name = "dataproc-taar-ensemble"
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ x-airflow-common:
- ./logs:/opt/airflow/logs
- ./plugins:/opt/airflow/plugins
- ./utils:/opt/airflow/utils
- ./operators:/opt/airflow/operators
- ./resources/dev_webserver_config.py:/opt/airflow/webserver_config.py
- ./resources/dev_connections.json:/opt/airflow/dev_connections.json
- ./resources/dev_variables.json:/opt/airflow/dev_variables.json
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion utils/gcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
)

from utils.dataproc import get_dataproc_parameters
from utils.operators.gcp_container_operator import GKEPodOperator
from operators.gcp_container_operator import GKEPodOperator

GCP_PROJECT_ID = "moz-fx-data-airflow-gke-prod"
DATAPROC_PROJECT_ID = "airflow-dataproc"
Expand Down

0 comments on commit 1e2b42e

Please sign in to comment.