Skip to content

Commit 0392ef8

Browse files
authored
Fix path to ingest script (#1756)
* Fix path to ingest script * Fix path to ingest script - Adds airflow user home path to ingest script path - Removes a debug message from ingest script
1 parent 6c1a8b8 commit 0392ef8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cob_datapipeline/gencon_ingest_dag.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,11 @@
6464
Tasks with custom logic are relegated to individual Python files.
6565
"""
6666

67+
68+
AIRFLOW_HOME = "/opt/airflow"
6769
INDEX_GENCON = BashOperator(
6870
task_id="index_gencon",
69-
bash_command="/opt/airflow/dags/cob_datapipeline/scripts/ingest_gencon.sh ",
71+
bash_command=AIRFLOW_HOME + "/dags/cob_datapipeline/scripts/ingest_gencon.sh ",
7072
retries=1,
7173
env={
7274
"AWS_ACCESS_KEY_ID": AIRFLOW_S3.login,

cob_datapipeline/scripts/ingest_gencon.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ export PATH="$AIRFLOW_USER_HOME/.rbenv/shims:$AIRFLOW_USER_HOME/.rbenv/bin:$PATH
1414
export SOLR_URL="${SOLR_WEB_URL//\/\////$SOLR_AUTH_USER:$SOLR_AUTH_PASSWORD@}"
1515
export GENCON_INDEX_PATH="$PWD/gencon_index"
1616

17-
echo ">>> My Dreictory: $PWD"
18-
1917
# Get the raw CSV files from S3
2018
aws s3 sync $GENCON_CSV_S3 $GENCON_TEMP_PATH --include "*.csv"
2119

0 commit comments

Comments
 (0)