Skip to content

Commit

Permalink
[FLINK-15701][Travis] Retries when uploading to transfer.sh fails
Browse files Browse the repository at this point in the history
This closes apache#10951.
  • Loading branch information
Gao Yun authored and tillrohrmann committed Jan 27, 2020
1 parent 676b53f commit d8ff590
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/travis_watchdog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ MAX_NO_OUTPUT=${1:-300}
# Number of seconds to sleep before checking the output again
SLEEP_TIME=20

# Maximum times to retry uploading artifacts file to transfer.sh
TRANSFER_UPLOAD_MAX_RETRIES=10

# The delay between two retries to upload artifacts file to transfer.sh. The default exponential
# backoff algorithm should be too long for the last several retries.
TRANSFER_UPLOAD_RETRY_DELAY=15

LOG4J_PROPERTIES=${HERE}/log4j-travis.properties

PYTHON_TEST="./flink-python/dev/lint-python.sh"
Expand Down Expand Up @@ -133,7 +140,7 @@ upload_artifacts_s3() {

# upload to https://transfer.sh
echo "Uploading to transfer.sh"
curl --upload-file $ARTIFACTS_FILE --max-time 60 https://transfer.sh
curl --retry ${TRANSFER_UPLOAD_MAX_RETRIES} --retry-delay ${TRANSFER_UPLOAD_RETRY_DELAY} --upload-file $ARTIFACTS_FILE --max-time 60 https://transfer.sh
}

print_stacktraces () {
Expand Down

0 comments on commit d8ff590

Please sign in to comment.