Small JobManager tweaks to scale more often and improve debugging info.

This commit is contained in:
Greyson Parrelli
2025-08-28 16:41:15 -04:00
parent 3bcfb5ab61
commit a5c4c3b54a
3 changed files with 16 additions and 9 deletions

View File

@@ -479,7 +479,7 @@ class JobControllerTest {
fun `maybeScaleUpRunners - creates runners to satisfy demand`() {
// When
jobController.runnersStarted.set(true)
jobController.maybeScaleUpRunners(MAX_RUNNERS)
jobController.maybeScaleUpRunners { MAX_RUNNERS }
// Then
assertThat(jobController.activeGeneralRunners.size).isEqualTo(MAX_RUNNERS)
@@ -489,7 +489,7 @@ class JobControllerTest {
fun `maybeScaleUpRunners - does not exceed max runners`() {
// When
jobController.runnersStarted.set(true)
jobController.maybeScaleUpRunners(MAX_RUNNERS * 2)
jobController.maybeScaleUpRunners { MAX_RUNNERS * 2 }
// Then
assertThat(jobController.activeGeneralRunners.size).isEqualTo(MAX_RUNNERS)