feat: change env var name

This commit is contained in:
fiftin 2024-07-01 23:16:36 +05:00
parent 59ef3f8a12
commit c4f4ea29a2
No known key found for this signature in database
GPG Key ID: 044381366A5D4731
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
export MAX_TASKS_PER_TEMPLATE=300
export SEMAPHORE_MAX_TASKS_PER_TEMPLATE=300
./semaphore server --config .dredd/config.json

View File

@ -222,8 +222,8 @@ type ConfigType struct {
// oidc settings
OidcProviders map[string]OidcProvider `json:"oidc_providers"`
MaxTaskDurationSec int `json:"max_task_duration_sec" env:"MAX_TASK_DURATION_SEC"`
MaxTasksPerTemplate int `json:"max_tasks_per_template" env:"MAX_TASKS_PER_TEMPLATE"`
MaxTaskDurationSec int `json:"max_task_duration_sec" env:"SEMAPHORE_MAX_TASK_DURATION_SEC"`
MaxTasksPerTemplate int `json:"max_tasks_per_template" env:"SEMAPHORE_MAX_TASKS_PER_TEMPLATE"`
// task concurrency
MaxParallelTasks int `json:"max_parallel_tasks" default:"10" rule:"^[0-9]{1,10}$" env:"SEMAPHORE_MAX_PARALLEL_TASKS"`