forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds more aggressive cancelling of duplicate Build Image jobs (apache…
…#12018) This change adds even more aggressive cancelling of duplicates of 'Build Image' jobs. it's not an obvious task to know which Build Image jobs are duplicates, we are matching those duplicates based on specially crafted "build-info" job names. We add Event, Branch, Repo to the job names and assume that two runs with the same event + branch + repo are duplicates. It also disables self-preservation for this step because it is perfectly ok to cancel itself in case there is a newer in-progress Build Image job. Unfortunately even this will not work perfectly well. Those job names are resolved only for the jobs that are runnning rather than the queued ones, so in case we have several duplicates of the same build image job in the queue, they will not be found/cancelled. The cancelling will only happen if both duplicates are already running. It's good enough for now and we cannot do much more until there is a missing feature added to GitHub API that allows to link the workflow_run with the run that triggered it. This issue has been raised to GitHub Support and internal engineering ticket has been apparently opened to add this feature. More detailed status for the missing feature is kept at apache#11294
- Loading branch information
Showing
2 changed files
with
26 additions
and
16 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