wait_for_event: Query the next invocation endpoint to get the next input

View source: R/start-listening.R

wait_for_eventR Documentation

Query the next invocation endpoint to get the next input

Description

The query will receive a response when an input is queued up. If there is no input waiting, the Lambda instance will be shut down after a period of inactivity.

Usage

wait_for_event(config = lambda_config())

Arguments

config

A list of configuration values as created by the lambda_config function.

Details

The Request ID is unique for each input of a Lambda. It is carried by the "lambda-runtime-aws-request-id" header of the response from the next invocation endpoint (see endpoints).

If an error occurs when extracting the Request ID it is impossible to post it to the invocation error endpoint as that is determined by the Request ID. We log the error and move on.


lambdr documentation built on Nov. 25, 2023, 5:08 p.m.