Skip to content

Commit 8b78e12

Browse files
committed
Set ServerAliveInterval to ping SSH server every 30 seconds
Otherwise connection may be dropped if there is no output for some time.
1 parent 15660f2 commit 8b78e12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/remote_python_packaging.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ set +x
2929

3030
for arch in "" "-arm64"; do
3131

32-
ssh -o ServerAliveInterval=30 $SSHTARGET bash -c "cat >${BUILDDIR}${arch}/exec_docker_run" <<_HERE
32+
ssh $SSHTARGET bash -c "cat >${BUILDDIR}${arch}/exec_docker_run" <<_HERE
3333
set +x -e
3434
shopt -s huponexit
3535
cd ${BUILDDIR}${arch}
@@ -48,10 +48,10 @@ done
4848
echo "--- Running $CIRCLE_JOB remotely"
4949

5050
echo "--- Building aarch64 wheels"
51-
ssh -t $SSHTARGET bash "$BUILDDIR-arm64/exec_docker_run"
51+
ssh -o ServerAliveInterval=30 -t $SSHTARGET bash "$BUILDDIR-arm64/exec_docker_run"
5252

5353
echo "--- Building x86_64 wheels"
54-
ssh -t $SSHTARGET bash "$BUILDDIR/exec_docker_run"
54+
ssh -o ServerAliveInterval=30 -t $SSHTARGET bash "$BUILDDIR/exec_docker_run"
5555

5656
mkdir -p workspace
5757

0 commit comments

Comments
 (0)