Skip to content

Commit

Permalink
add back BACKEND_BASE_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-parker committed Sep 11, 2024
1 parent 9e63e11 commit 8afdf44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kubernetes/loculus/silo_import_wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ do
time_diff=$((current_time - last_hard_refresh_time))
if [ "$time_diff" -ge 3600 ]; then
echo "Last hard refresh was more than 1 hour ago. Performing hard refresh."
bash /silo_import_job.sh --last-snapshot=0
bash /silo_import_job.sh --last-snapshot=0 --backend-base-url="$BACKEND_BASE_URL"
exit_code=$?
if [ "$exit_code" -ne 0 ]; then
echo "Error: Hard refresh failed with exit code $exit_code"
Expand All @@ -34,7 +34,7 @@ do
echo "$current_time" > "$last_hard_refresh_time_path"
fi
else
bash /silo_import_job.sh --last-snapshot="$last_snapshot_time"
bash /silo_import_job.sh --last-snapshot="$last_snapshot_time" --backend-base-url="$BACKEND_BASE_URL"
fi
sleep 30
done

0 comments on commit 8afdf44

Please sign in to comment.