fix(config): default value for max tasks

This commit is contained in:
Denis Gukov 2023-09-17 01:44:43 +02:00
parent 70dd0554d8
commit f4c882b879

View File

@ -169,7 +169,7 @@ type ConfigType struct {
OidcProviders map[string]OidcProvider `json:"oidc_providers"` OidcProviders map[string]OidcProvider `json:"oidc_providers"`
// task concurrency // task concurrency
MaxParallelTasks int `json:"max_parallel_tasks" rule:"^[0-9]{1,10}$" env:"SEMAPHORE_MAX_PARALLEL_TASKS"` MaxParallelTasks int `json:"max_parallel_tasks" default:"10" rule:"^[0-9]{1,10}$" env:"SEMAPHORE_MAX_PARALLEL_TASKS"`
RunnerRegistrationToken string `json:"runner_registration_token" env:"SEMAPHORE_RUNNER_REGISTRATION_TOKEN"` RunnerRegistrationToken string `json:"runner_registration_token" env:"SEMAPHORE_RUNNER_REGISTRATION_TOKEN"`