[ci] make wait-ssh the default behavior

I have no idea why I added this option or why we would want it to not be set :/

Fixes #74777

Pull Request resolved: https://github.com/pytorch/pytorch/pull/74816

Approved by: https://github.com/seemethere, https://github.com/janeyx99, https://github.com/malfet, https://github.com/cpuhrsch
This commit is contained in:
Michael Suo 2022-03-28 16:51:50 -07:00 committed by PyTorch MergeBot
parent 8e12d2bf25
commit f8b0f003c0
2 changed files with 4 additions and 4 deletions

View file

@ -3,8 +3,8 @@ name: Teardown Linux
description: Stuff that should always run at the end of a linux job
inputs:
wait-ssh:
description: If set, wait for ssh to drain before tearing down
skip-wait-ssh:
description: If set, don't wait for ssh to drain before tearing down
required: false
default: ""
@ -15,7 +15,7 @@ runs:
# TODO working-directory: !{{ pytorch_directory }}
# Always hold for active ssh sessions
shell: bash
if: inputs.wait-ssh != ''
if: inputs.skip-wait-ssh == ''
run: .github/scripts/wait_for_ssh_to_drain.sh
- name: Kill containers, clean up images

View file

@ -162,4 +162,4 @@ jobs:
uses: pytorch/pytorch/.github/actions/teardown-linux@master
if: always()
with:
wait-ssh: false
skip-wait-ssh: true