From e8322f451ed16a963d52ac1b3b4410d0d6407b0d Mon Sep 17 00:00:00 2001 From: Jordan Hayes Date: Wed, 16 Oct 2024 11:27:31 -0700 Subject: [PATCH] Update TaskPool.go Check if Git starts with '/' (is path not url) then skip limiting tasks. This way we can allow concurrent tasks within the same template , as long as it is safe (ie. not running git pull). --- services/tasks/TaskPool.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/tasks/TaskPool.go b/services/tasks/TaskPool.go index 28f9a5512..2fff4983e 100644 --- a/services/tasks/TaskPool.go +++ b/services/tasks/TaskPool.go @@ -194,6 +194,9 @@ func (p *TaskPool) blocks(t *TaskRunner) bool { } for _, r := range p.activeProj[t.Task.ProjectID] { + if t.Repository.GitURL[0] == '/' { + continue + } if r.Task.Status.IsFinished() { continue }