feat: allow set max runners for nodes

This commit is contained in:
Marvin Zhang
2024-12-11 22:05:34 +08:00
parent 1f8f22e5cd
commit eaa834e8f8
3 changed files with 3 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ const (
DefaultApiAllowCredentials = "true"
DefaultApiAllowMethods = "DELETE, POST, OPTIONS, GET, PUT"
DefaultApiAllowHeaders = "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With"
DefaultNodeMaxRunners = 16
DefaultNodeMaxRunners = 0 // 0 means no limit
MetadataConfigDirName = ".crawlab"
MetadataConfigName = "config.json"
PyenvRoot = "/root/.pyenv"