Set DELAY_CONNECT to 30s and RETRY_LAUNCH to 1 in jack script
Change-Id: I5e1e7d2baf0cf3a8a720d24e6b76b0b1704a3cb7
diff --git a/tools/jack b/tools/jack
index b26baff..106e653 100755
--- a/tools/jack
+++ b/tools/jack
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-# v 1.1-a11-log
+# v 1.1-a11-log-pl1
#
set -o nounset
umask 077
@@ -115,18 +115,19 @@
set +o errexit
trap ERR
-RETRY_LAUNCH=3
+RETRY_LAUNCH=1
RETRY_SESSION=3
-DELAY_CONNECT=3
+DELAY_CONNECT=30
# Launch compilation
DATE_CONNECT=$(date +%s)
while true; do
+ CURL_TIME=$(date +%H:%M:%S)
HTTP_CODE=$(curl --fail --silent --data @- --output "$JACK_EXIT" --write-out %{http_code} --connect-timeout 10 --no-proxy 127.0.0.1:$SERVER_PORT_SERVICE http://127.0.0.1:$SERVER_PORT_SERVICE/jack <<< "+ $JACK_OUT $JACK_ERR $JACK_CLI")
CURL_CODE=$?
JACK_CODE=$(cat "$JACK_EXIT")
- echo "CURL: $$ - $CURL_CODE - $HTTP_CODE - $JACK_CODE" >>$SERVER_LOG
+ echo "CURL: $$ - $CURL_TIME - $CURL_CODE - $HTTP_CODE - $JACK_CODE" >>$SERVER_LOG
if [ $CURL_CODE -eq 0 ]; then
# No problem, let's go
break;