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

feat(serverless): properly clear isolates cache #264

Merged
merged 3 commits into from
Nov 18, 2022

Conversation

QuiiBz
Copy link
Member

@QuiiBz QuiiBz commented Nov 18, 2022

About

Remove lru_time_cache and instead run a task every minute to check for isolates to clear in the cache. We use the same environment variable (LAGON_ISOLATES_CACHE_SECONDS) to configure the cache delay in seconds.

When not receiving any requests triggering the function (not assets) in the configured above delay, the isolate cache will be cleared and the isolate will be recreated on the next request.

@QuiiBz QuiiBz enabled auto-merge (squash) November 18, 2022 17:36
@QuiiBz QuiiBz merged commit e970b9d into main Nov 18, 2022
@QuiiBz QuiiBz deleted the feat/serverless-clear-cache branch November 18, 2022 17:42
@QuiiBz QuiiBz mentioned this pull request Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant