fix(be): ignore max parallel tasks if it is 0

This commit is contained in:
Denis Gukov 2023-09-17 22:06:28 +02:00
parent cb2bcd8f0b
commit e6c72fb330
3 changed files with 8 additions and 7 deletions

View File

@ -178,7 +178,7 @@ func (p *TaskPool) Run() {
func (p *TaskPool) blocks(t *TaskRunner) bool {
if len(p.runningTasks) >= util.Config.MaxParallelTasks {
if util.Config.MaxParallelTasks > 0 && len(p.runningTasks) >= util.Config.MaxParallelTasks {
return true
}

View File

@ -200,9 +200,9 @@ export default {
gitUrl: 'URL Git',
sshKey: 'Chave SSH',
lastTask: 'Última Tarefa',
task2: 'Tarefa',
build: 'Compilar',
deploy: 'Implementar',
// task2: 'Tarefa',
// build: 'Compilar',
// deploy: 'Implementar',
run: 'Executar',
add: 'Adicionar',
password_required: 'Palavra-passe obrigatória',
@ -227,8 +227,8 @@ export default {
environment_required: 'Ambiente obrigatório',
email_required: 'E-mail obrigatório',
build_template_required: 'Modelo de compilação obrigatório',
Task: 'Tarefa',
Build: 'Compilar',
Deploy: 'Implementar',
// Task: 'Tarefa',
// Build: 'Compilar',
// Deploy: 'Implementar',
Run: 'Executar',
};

View File

@ -16,6 +16,7 @@
:to="`/project/${projectId}/settings`"
>{{ $t('settings') }}
</v-tab>
<v-tab key="history" :to="`/project/${projectId}/billing`">{{ $t('billing') }}</v-tab>
</v-tabs>
<v-data-table