Skip to content

Commit d53b9bc

Browse files
committed
update config file
1 parent 3134281 commit d53b9bc

File tree

1 file changed

+7
-0
lines changed
  • terraform-aws-github-runner/modules/runners/lambdas/runners/src/scale-runners

1 file changed

+7
-0
lines changed

terraform-aws-github-runner/modules/runners/lambdas/runners/src/scale-runners/config.ts

+7
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ export class Config {
3636
readonly retryScaleUpRecordQueueUrl: string | undefined;
3737
readonly runnerGroupName: string | undefined;
3838
readonly runnersExtraLabels: undefined | string;
39+
readonly scaleConfigOrg: string;
3940
readonly scaleConfigRepo: string;
4041
readonly scaleConfigRepoPath: string;
42+
readonly scaleUpMinQueueTimeMinutes: number;
43+
readonly scaleUpRecordQueueUrl: string | undefined;
4144
readonly secretsManagerSecretsId: string | undefined;
4245
readonly sSMParamCleanupAgeDays: number;
4346
readonly sSMParamMaxCleanupAllowance: number;
@@ -94,8 +97,12 @@ export class Config {
9497
/* istanbul ignore next */
9598
this.retryScaleUpRecordJitterPct = Number(process.env.RETRY_SCALE_UP_RECORD_JITTER_PCT || '0');
9699
this.retryScaleUpRecordQueueUrl = process.env.RETRY_SCALE_UP_RECORD_QUEUE_URL;
100+
this.scaleUpRecordQueueUrl = process.env.SCALE_UP_RECORD_QUEUE_URL;
101+
this.scaleUpMinQueueTimeMinutes =
102+
process.env.SCALE_UP_MIN_QUEUE_TIME_MINUTES ? Number(process.env.SCALE_UP_MIN_QUEUE_TIME_MINUTES) : 30;
97103
this.runnerGroupName = process.env.RUNNER_GROUP_NAME;
98104
this.runnersExtraLabels = process.env.RUNNER_EXTRA_LABELS;
105+
this.scaleConfigOrg = process.env.SCALE_CONFIG_ORG || '';
99106
/* istanbul ignore next */
100107
this.scaleConfigRepo = process.env.SCALE_CONFIG_REPO || '';
101108
if (this.enableOrganizationRunners && !this.scaleConfigRepo) {

0 commit comments

Comments
 (0)