Skip to content

multi-runner v1-to-v2 migration silently throttles job-retry Lambda concurrency #5478

Closed

Description

@Brend-Smits

Problem

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:

aws_lambda_function.job_retry
  reserved_concurrent_executions: -1 -> 1

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

  1. Deploy a v1 multi-runner lane with job_retry.enable = true.
  2. Convert the lane to the documented v2 shape without setting job_retry.lambda.reserved_concurrent_executions.
  3. Run scripts/migrate_multi_runner_state.py.
  4. Run terraform plan and observe reserved_concurrent_executions change from -1 to 1.

Activity

  1. added theissue type on Sep 25, 2026
  2. added a commit that references this issue on Oct 19, 2026
    feba645
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions