Skip to content

Commit

Permalink
Add gsutil upload retry helper function (#6817)
Browse files Browse the repository at this point in the history
* Add gsutil cp retry helper function

* Add max retry to GCS upload

* Use simple sequential upload
  • Loading branch information
kthui authored Jan 25, 2024
1 parent 30d64af commit 4bc15c9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions qa/common/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,13 @@ function kill_servers () {
done
}

# Upload a local directory to a GCS path
function gcs_upload () {
local local_path=$1
local gcs_path=$2
gsutil cp -r $local_path $gcs_path
}

# Sort an array
# Call with sort_array <array_name>
# Example: sort_array array
Expand Down

0 comments on commit 4bc15c9

Please sign in to comment.