Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shuffle lambda integration #1343

Open
anjanaradhakrishnan opened this issue Mar 6, 2024 · 3 comments
Open

shuffle lambda integration #1343

anjanaradhakrishnan opened this issue Mar 6, 2024 · 3 comments

Comments

@anjanaradhakrishnan
Copy link

Hi @frikky I have created a shuffle workflow to integrate the AWS lambda function. But we are unable to pass the expected events to the lambda.
image

@frikky
Copy link
Member

frikky commented Mar 6, 2024

Hi @frikky I have created a shuffle workflow to integrate the AWS lambda function. But we are unable to pass the expected events to the lambda. image

Hey!

Did the Lambda start? What should the response be? Do you return anything from the lambda?

@anjanaradhakrishnan
Copy link
Author

lambda function is scripted to return event. Lambda is getting invoked with a dummy event via workflow with the type as request response, and the payload in the response is empty.

when lambda function is modified to return a string, the payload in the response(workflow run) is string as expected.

Not sure why the dummy event is not being passed to lambda during invocation.

@frikky
Copy link
Member

frikky commented Mar 7, 2024

lambda function is scripted to return event. Lambda is getting invoked with a dummy event via workflow with the type as request response, and the payload in the response is empty.

when lambda function is modified to return a string, the payload in the response(workflow run) is string as expected.

Not sure why the dummy event is not being passed to lambda during invocation.

Good question! This is the code: https://github.com/Shuffle/python-apps/blob/1a10115df2bccbcef91af4bb1eee2e5fb3696744/aws-lambda/1.0.0/src/app.py#L70

I'm not sure whether more would be required to get the "Payload" response back. Could you help us figure this out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants