mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
feat: allow set max runners for nodes
This commit is contained in:
@@ -85,8 +85,8 @@ func (svc *Service) fetchAndRunTasks() {
|
||||
continue
|
||||
}
|
||||
|
||||
// validate if there are available runners
|
||||
if svc.getRunnerCount() >= n.MaxRunners {
|
||||
// validate if max runners is reached (max runners = 0 means no limit)
|
||||
if n.MaxRunners > 0 && svc.getRunnerCount() >= n.MaxRunners {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user