Add a CI metric data point upload timeout to prevent CI build stalls

5 seconds is somewhat arbitrary, seems like enough
This commit is contained in:
Michael Vines
2018-08-01 15:23:36 -07:00
parent bb0aabae75
commit 2c9d288ca9
2 changed files with 2 additions and 2 deletions

View File

@ -13,4 +13,4 @@ if [[ -z $INFLUX_DATABASE || -z $INFLUX_USERNAME || -z $INFLUX_PASSWORD ]]; then
fi
echo "https://metrics.solana.com:8086/write?db=${INFLUX_DATABASE}&u=${INFLUX_USERNAME}&p=${INFLUX_PASSWORD}" \
| xargs curl -XPOST --data-binary "$point"
| xargs curl --max-time 5 -XPOST --data-binary "$point"