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

Timeout when writing function that never returns #32

Closed
DarcyRaynerDD opened this issue Nov 8, 2019 · 1 comment
Closed

Timeout when writing function that never returns #32

DarcyRaynerDD opened this issue Nov 8, 2019 · 1 comment

Comments

@DarcyRaynerDD
Copy link
Contributor

Expected Behavior

When writing a handler that never returns a value, using either the async await method or the callback approach, the wrapper will block the function from completing. This doesn't happen when the wrapper isn't used.

Actual Behavior

Function times out

exports.handler = datadog(function (event, context) { });
// Timeout occurs

As a work around, prepending async to the function fixes this

exports.handler = datadog(async function (event, context) { });
// No timeout

Specifications

  • Datadog Lambda Layer version: 5 +
  • Node version: 10
@DarcyRaynerDD
Copy link
Contributor Author

This was fixed in pr #33

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

No branches or pull requests

1 participant