Skip to content
Snippets Groups Projects
Unverified Commit d68ffeed authored by Shenghang Tsai's avatar Shenghang Tsai Committed by GitHub
Browse files

Add timeout for wait_gpu_slot (#5497)


* add_timeout_for_wait_gpu_slot

* refine

Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
parent fd113841
No related branches found
No related tags found
No related merge requests found
......@@ -140,6 +140,7 @@ jobs:
runs-on: [self-hosted, scheduler]
needs: [build]
if: github.event.pull_request.draft == false && github.base_ref == 'master' && contains(github.event.pull_request.requested_reviewers.*.login, 'oneflow-ci-bot')
continue-on-error: true
steps:
- name: Check if secrets accessible
env:
......@@ -154,6 +155,7 @@ jobs:
- uses: Oneflow-Inc/gh-action-scheduler-v2@1e45bd715c873bc3a14a87ddaf494f9b686137de
name: Wait for GPU slot
if: env.is_secrets_accessible == '1'
timeout-minutes: 45
env:
CI_PERSONAL_ACCESS_TOKEN: ${{ secrets.CI_PERSONAL_ACCESS_TOKEN }}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment