Apply suggestions from code review

Co-authored-by: Sebastian Serth <MrSerth@users.noreply.github.com>
This commit is contained in:
Maximilian Paß
2022-04-08 16:19:49 +02:00
parent 597cbec456
commit 3570f18202
2 changed files with 3 additions and 2 deletions

View File

@ -65,8 +65,9 @@ func (a *AWSEnvironment) IdleRunnerCount() int {
}
// 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 {
return 0
return 1
}
// SetPrewarmingPoolSize is neither supported nor required. It is handled transparently by AWS.

View File

@ -64,7 +64,7 @@ func (n *AbstractManager) EnvironmentStatistics() map[dto.EnvironmentID]*dto.Sta
ID: int(e.ID()),
PrewarmingPoolSize: e.PrewarmingPoolSize(),
IdleRunners: uint(e.IdleRunnerCount()),
UsedRunners: 0,
UsedRunners: 0, // Adjusted later as the information is present in the specific runner manager.
}
}