Commit 89afdea7 authored by Kamil Trzciński's avatar Kamil Trzciński 🔴

Make default limit for runner set to 1 during registration

parent 6c17d0af
......@@ -5,6 +5,7 @@ v 0.4.0
- Make the debug log human readable
- Make default build log limit set to 4096 (4MB)
- Make default concurrent set to 1
- Make default limit for runner set to 1 during registration
- Updated kardianos service to fix OSX service installation
- Updated logrus to make console output readable on Windows
- Change default log level to warning
......
......@@ -212,6 +212,12 @@ func runRegister(c *cli.Context) {
}
runnerConfig.Executor = s.askExecutor()
limit := c.Int("limit")
runnerConfig.Limit = &limit
if s.config.Concurrent < limit {
log.Warningf("Specified limit (%d) larger then current concurrent limit (%d). Concurrent limit will not be enlarged.", limit, s.config.Concurrent)
}
switch runnerConfig.Executor {
case "docker", "docker-ssh":
......@@ -295,6 +301,14 @@ func init() {
EnvVar: "RUNNER_EXECUTOR",
},
// Runner specific configuration
cli.IntFlag{
Name: "limit",
Value: 1,
Usage: "Specify number of concurrent jobs for this runner",
EnvVar: "RUNNER_LIMIT",
},
// Docker specific configuration
cli.StringFlag{
Name: "docker-image",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment