Skip to content

Commit

Permalink
Update set -o pipefail in usersync-job
Browse files Browse the repository at this point in the history
  • Loading branch information
nss10 committed Jan 29, 2025
1 parent 96c6076 commit a3d1579
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kube/services/jobs/usersync-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ spec:
exitcode=$?
else
output=$(mktemp "/tmp/fence-create-output_XXXXXX")
set -o pipefail
if [[ -f /mnt/shared/user.yaml && "$ONLY_DBGAP" != "true" ]]; then
echo "Running fence-create dbgap-sync with user.yaml - see $output"
time (
Expand All @@ -225,6 +226,7 @@ spec:
poetry run fence-create sync --arborist http://arborist-service --sync_from_dbgap "True" --projects /var/www/fence/projects.yaml 2>&1 | tee "$output"
)
fi
set +o pipefail
exitcode="${PIPESTATUS[0]}"
echo "$output"
# Echo what files we are seeing on dbgap ftp to Slack
Expand Down

0 comments on commit a3d1579

Please sign in to comment.