Skip to content

Testing: GetDurableExecution ignores the function qualifier in FunctionArn and Version #735

Description

@yaythomas

Where

packages/aws-durable-execution-sdk-python-testing, Executor.get_execution (executor.py).

What happens

GetDurableExecution builds FunctionArn as arn:aws:lambda:<region>:<account>:function:<name> from the start input's function name alone, and returns Version: "1.0" fixed.

So an execution started for child:prod reports:

FunctionArn=arn:aws:lambda:eu-west-1:999999999999:function:child
Version=1.0

The service returns the function ARN with the qualifier the execution was started with, and the version of the function that ran ($LATEST or a version number).

Where it shows

Proposed change

  • Build FunctionArn from the start input's function name and qualifier when a qualifier is present.
  • Report the qualifier as Version when it is a version number, else $LATEST. An alias's target version is not known locally, so an alias reports $LATEST.
  • Tests: bare and qualified targets, root and child executions.

Found in review of #731; filed as a follow-up so that PR stays scoped to the chained-invoke operation.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions