Commit 6cf3ffa
committed
fix(runners): wire job_retry.lambda_memory_size and lambda_timeout
The job_retry variable on both the multi-runner and runners modules
declares lambda_memory_size and lambda_timeout, but the
local.job_retry map in modules/runners/job-retry.tf never copied
either field into the config passed to the inner job-retry / lambda
sub-modules. The inner lambda module fell back to its defaults
(memory_size = 256, timeout = 60), so user-supplied values were
silently dropped.
Mirrors the pattern already used by ssm-housekeeper.tf
(local.ssm_housekeeper.lambda_memory_size /
local.ssm_housekeeper.lambda_timeout) — the ssm-housekeeper Lambda
correctly threads the values through; the job-retry one didn't.
Observed in production: a deployment pinned to lambda_memory_size = 512
in multi_runner_config[*].runner_config.job_retry produced no plan
diff because the value never reached the resource. The job-retry
Lambdas were OOM-adjacent at 87% memory utilisation (223 MB peak on
the 256 MB default) on a fleet of three runners.1 parent 1d57199 commit 6cf3ffa
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
0 commit comments