Skip to content

Commit 4cf9205

Browse files
committed
Fix path to ingest script
- Adds airflow user home path to ingest script path - Removes a debug message from ingest script
1 parent 33f5947 commit 4cf9205

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cob_datapipeline/gencon_ingest_dag.py

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

67+
6768
AIRFLOW_HOME = "/opt/airflow"
6869
INDEX_GENCON = BashOperator(
6970
task_id="index_gencon",
70-
bash_command="/dags/cob_datapipeline/scripts/ingest_gencon.sh ",
71+
bash_command=AIRFLOW_HOME + "/dags/cob_datapipeline/scripts/ingest_gencon.sh ",
7172
retries=1,
7273
env={
7374
"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)