To prevent a problem with multiple commits occurring at nearly the same time and overwriting snapshots, there are two solutions:
Force sequential builds. However, a difficulty is that each build takes 45 minutes, so when 10 commits happen in sequence the final snapshot won't be ready for 7 hours.
or
Cancel previous in-progress builds. Only the newest commit is relevant when building a snapshot. This generally seems preferable since it's faster. A small disadvantage is that if one commit out of ten caused an error, it won't be immediately obvious which commit caused the error. Not often an issue.
This PR cancels in-progress builds. As an enhancement, it checks the time, and only cancels other jobs from within the last 10 minutes. Any job that's been running longer will be unlikely to conflict.
Note: create an API token before proceeding.
To prevent a problem with multiple commits occurring at nearly the same time and overwriting snapshots, there are two solutions:
or
This PR cancels in-progress builds. As an enhancement, it checks the time, and only cancels other jobs from within the last 10 minutes. Any job that's been running longer will be unlikely to conflict.
Token