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

airflow: PythonOperator to scrape state highway network stop locations #3485

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
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
7 changes: 5 additions & 2 deletions airflow/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
FROM apache/airflow:2.4.3-python3.8
FROM apache/airflow:2.4.3-python3.9

# install gcloud as root, then switch back to airflow
USER root

RUN apt-get update \
&& apt-get install -y git \
&& apt-get install -y git gdal-bin libgdal-dev g++ \
&& rm -rf /var/lib/apt/lists/*

RUN export CPLUS_INCLUDE_PATH=/usr/include/gdal
RUN export C_INCLUDE_PATH=/usr/include/gdal

RUN curl https://sdk.cloud.google.com > install.sh \
&& sudo bash install.sh --disable-prompts --install-dir=/usr/local/

Expand Down
19 changes: 19 additions & 0 deletions airflow/dags/state_highway_network_stops/METADATA.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
description: "Scrape stops on the State Highway Network"
schedule_interval: "0 10 * * 6" # 10am UTC every saturday
tags:
- all_gusty_features
default_args:
owner: airflow
depends_on_past: False
catchup: False
start_date: "2024-09-15"
email:
- "[email protected]"
email_on_failure: True
email_on_retry: False
retries: 1
retry_delay: !timedelta 'minutes: 2'
concurrency: 50
#sla: !timedelta 'hours: 2'
wait_for_defaults:
timeout: 8600
Loading
Loading