Skip to content

Commit

Permalink
fix(lambda): cache state and state reason info for lambda functions (#…
Browse files Browse the repository at this point in the history
…5402)

the state can be used to determine whether a lambda function is ready
to receive traffic.
  • Loading branch information
nimakaviani committed Jun 25, 2021
1 parent 5b3a619 commit 39de791
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ private final Map<String, Object> addConfigAttributes(
attributes.put("code", getFunctionResult.getCode());
attributes.put("tags", getFunctionResult.getTags());
attributes.put("concurrency", getFunctionResult.getConcurrency());
attributes.put("state", getFunctionResult.getConfiguration().getState());
attributes.put("stateReason", getFunctionResult.getConfiguration().getStateReason());
attributes.put("stateReasonCode", getFunctionResult.getConfiguration().getStateReasonCode());
return attributes;
}

Expand Down

0 comments on commit 39de791

Please sign in to comment.