Skip to content

Commit

Permalink
Append publishing logs to the logfile as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jdangerx committed Nov 8, 2023
1 parent da9367e commit a4eb7ac
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docker/gcp_pudl_etl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,17 @@ if [[ ${PIPESTATUS[0]} == 0 ]]; then

# Deploy the updated data to datasette
if [ $GITHUB_REF = "dev" ]; then
gcloud config set run/region us-central1
python ~/devtools/datasette/publish.py
python ~/devtools/datasette/publish.py 2>&1 | tee -a $LOGFILE
fi
fi

# Notify slack about entire pipeline's success or failure;
# PIPESTATUS[0] either refers to the failed ETL run or the last distribution
# task that was run above
if [[ ${PIPESTATUS[0]} == 0 ]]; then notify_slack "success" else notify_slack
"failure" fi

if [[ ${PIPESTATUS[0]} == 0 ]]; then
notify_slack "success"
else
notify_slack "failure"
fi

shutdown_vm

0 comments on commit a4eb7ac

Please sign in to comment.