You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrating an existing multi-runner configuration from v1 to v2 silently changes the job-retry Lambda's reserved concurrency from unreserved (-1) to 1.
The v2 schema defaults multi_runner_config.<lane>.orchestration_provider.webhook.job_retry.lambda.reserved_concurrent_executions to 1. The v1-to-v2 translation in modules/multi-runner/config.experimental.translation.tf also hardcodes reserved_concurrent_executions = 1, while the v1 job-retry Lambda leaves this setting unset/unreserved.
As a result, a state-migrated deployment with job retry enabled plans this in-place change:
This is a behavioral change rather than state-address churn: concurrent job-retry invocations become throttled to one after migration.
Expected behavior
A v1-to-v2 migration that preserves the existing configuration should leave the job-retry Lambda's concurrency unreserved unless the operator explicitly configures a limit.
Possible fix
Make the v2 field default to null/unreserved and preserve that value in the stable-to-v2 translation, or expose/carry an equivalent v1 setting if a configurable migration path is preferred.
Reproduction
Deploy a v1 multi-runner lane with job_retry.enable = true.
Convert the lane to the documented v2 shape without setting job_retry.lambda.reserved_concurrent_executions.
Run scripts/migrate_multi_runner_state.py.
Run terraform plan and observe reserved_concurrent_executions change from -1 to 1.
Activity
fix(migration-test): preserve unreserved job retry concurrency (#5516)