Skip to content
Merged
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
4 changes: 3 additions & 1 deletion cob_datapipeline/gencon_ingest_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@
Tasks with custom logic are relegated to individual Python files.
"""


AIRFLOW_HOME = "/opt/airflow"
INDEX_GENCON = BashOperator(
task_id="index_gencon",
bash_command="/opt/airflow/dags/cob_datapipeline/scripts/ingest_gencon.sh ",
bash_command=AIRFLOW_HOME + "/dags/cob_datapipeline/scripts/ingest_gencon.sh ",
retries=1,
env={
"AWS_ACCESS_KEY_ID": AIRFLOW_S3.login,
Expand Down
2 changes: 0 additions & 2 deletions cob_datapipeline/scripts/ingest_gencon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ export PATH="$AIRFLOW_USER_HOME/.rbenv/shims:$AIRFLOW_USER_HOME/.rbenv/bin:$PATH
export SOLR_URL="${SOLR_WEB_URL//\/\////$SOLR_AUTH_USER:$SOLR_AUTH_PASSWORD@}"
export GENCON_INDEX_PATH="$PWD/gencon_index"

echo ">>> My Dreictory: $PWD"

# Get the raw CSV files from S3
aws s3 sync $GENCON_CSV_S3 $GENCON_TEMP_PATH --include "*.csv"

Expand Down