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

fix(gatsby): shut down worker pool after html generation #32366

Merged
merged 1 commit into from
Jul 14, 2021

Conversation

vladar
Copy link
Contributor

@vladar vladar commented Jul 14, 2021

Description

Workers may accumulate some garbage in memory during PQR and HTML generation and it doesn't make sense to keep them around when they are not needed anymore.

This PR moves the shut down step of our WorkerPool to an earlier stage - before state persistence. State persistence is rather expensive and it often consumes a significant amount of memory so stopping worker processes earlier should lower memory pressure a bit at this step.

[ch34426]

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jul 14, 2021
@vladar vladar added topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine) and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants