@ceritium Interesting. The
def lambda method is definitely being used. One spot can think off at the top of my head is for prewarming. The prewarming function uses the lambda client to call controller lambda functions in the app with a dummy payload to keep the other functions warm. It may be used in other places.
Just searched through the pagy gem and see why it’s colliding now. The gem uses the lambda keyword to create ruby blocks of code.
Didn’t think about the lambda keyword when defining the method
RE: If it makes sense I would create a PR.
Think renaming it to the
aws_lambda method is good. It’s pretty short name still. Would add a comment above the method to remind us about the
lambda ruby keyword for posterity.
Also, need to search through the code base for
lambda. to and replace it with
aws_lambda. Happy to review this PR if you would like to take a stab. Otherwise, will take a look at it when got some time.