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

[question] ioredis is never disconnected #20

Open
stevium opened this issue Jun 19, 2021 · 0 comments
Open

[question] ioredis is never disconnected #20

stevium opened this issue Jun 19, 2021 · 0 comments

Comments

@stevium
Copy link

stevium commented Jun 19, 2021

Hi,

I have tried out this project, and it looks like a great use of s3 for concurrent leaderboard updates.

But one thing which I cannot figure out is why put lambda handler never times out, although Redis is never disconnected?

I'm asking because when I use ioredis in some other serverless projects, I always get CloudWatch logs of this type:
2021-06-19T20:15:21.741Z 07d895b8-ffe1-4957-b104-ca36d3476f20 Task timed out after 6.01 seconds ,
and the only way to fix it is to set context.callbackWaitsForEmptyEventLoop = false or to do redis.disconnect

So I'm not sure if you use some other ways of preventing "empty event loop" timeouts, or it just works out of the box?

Thanks!

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