Apply suggestions from code review
Co-authored-by: Sebastian Serth <MrSerth@users.noreply.github.com>
This commit is contained in:
@ -65,8 +65,9 @@ func (a *AWSEnvironment) IdleRunnerCount() int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PrewarmingPoolSize is neither supported nor required. It is handled transparently by AWS.
|
// PrewarmingPoolSize is neither supported nor required. It is handled transparently by AWS.
|
||||||
|
// For easy compatibility with CodeOcean, 1 is the static value.
|
||||||
func (a *AWSEnvironment) PrewarmingPoolSize() uint {
|
func (a *AWSEnvironment) PrewarmingPoolSize() uint {
|
||||||
return 0
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetPrewarmingPoolSize is neither supported nor required. It is handled transparently by AWS.
|
// SetPrewarmingPoolSize is neither supported nor required. It is handled transparently by AWS.
|
||||||
|
@ -64,7 +64,7 @@ func (n *AbstractManager) EnvironmentStatistics() map[dto.EnvironmentID]*dto.Sta
|
|||||||
ID: int(e.ID()),
|
ID: int(e.ID()),
|
||||||
PrewarmingPoolSize: e.PrewarmingPoolSize(),
|
PrewarmingPoolSize: e.PrewarmingPoolSize(),
|
||||||
IdleRunners: uint(e.IdleRunnerCount()),
|
IdleRunners: uint(e.IdleRunnerCount()),
|
||||||
UsedRunners: 0,
|
UsedRunners: 0, // Adjusted later as the information is present in the specific runner manager.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user