-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit implements a simple logic to cancel old running builds when a new build for the same project/version arrives: 1. look for running builds for the same project/version 2. if there are any, it cancels them all one by one via Celery's revoke method 3. trigger a new build for the current commit received Note that this new feature is behind a feature flag (`CANCEL_OLD_BUILDS`) for now so we can start testing it on some projects that have shown their interest on this feature. The current behavior for `DEDUPLICATE_BUILDS` will be replaced by this new logic in the future. However, it was not removed in this commit since it's still useful for projects that won't be using the new feature flag yet. Closes #8961
- Loading branch information
Showing
2 changed files
with
82 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters