Skip to content

Commit d78c49b

Browse files
authored
Cancel outdated benchmark runs (#2462)
Currently each update to a PR runs benchmarks, which can take ~45mins to run. They can overload the runners and relevant runs will be delayed. At the same time there's rarely any point in outdated results. Explanation about changes: https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre
1 parent f7f6f27 commit d78c49b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/triton-benchmarks.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ on:
4343
- .github/workflows/triton-benchmarks.yml
4444
- benchmarks/**
4545

46+
# Cancels in-progress PR runs when the PR is updated. Manual runs are never cancelled.
47+
concurrency:
48+
group: ${{ github.workflow }}-${{ github.event_name == 'workflow_dispatch' && github.run_id || github.event.pull_request.number || github.ref }}
49+
cancel-in-progress: true
50+
4651
permissions: read-all
4752

4853
env:

0 commit comments

Comments
 (0)