I have increased the number of agents to allow me to have multiple builds at the same time running.
However we’re sometimes running into an issue where two (or more) PRs are merged very closely together (< 1 minute) creating two new commits to the main branch. Both of these are then built in parallel and sometimes the first merge commit finishes building second (race condition), thus pushing an older build to our docker repo and then deploying the older build.
I’ve read other posts on here that ask the same question but without an answer that helps in this situation. e.g. Prevent parallel builds in the same repo
Is there a way to configure to drone to only parallelize builds across projects but not within the same project?