Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Automatically cancel old workflow runs on PRs #2623

Closed
btashton opened this issue Dec 29, 2020 · 0 comments
Closed

CI: Automatically cancel old workflow runs on PRs #2623

btashton opened this issue Dec 29, 2020 · 0 comments
Labels

Comments

@btashton
Copy link
Contributor

We can be a little less wasteful of our limited runner resources by having old runs for PRs get automatically cancelled when new runs on the PR are triggered. This usually happens when someone creates a PR and then it runs and while it is running improvements are made to it. The new run then sits until the old run fails or completes which can take 1hr+ especially with the macOS runners.

This has been discussed a bit on the Apache builds mailing list and the Apache Airflow project which uses GitHub actions extensively used this action to automate this https://github.com/apache/airflow-cancel-workflow-runs

There is also a max concurrency across the whole Apache GitHub organization so heavy use of the runners can impact other projects as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants