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

chore(gatsby): Deregister all events to the queue after batch #20798

Merged
merged 1 commit into from
Jan 23, 2020

Conversation

pvdz
Copy link
Contributor

@pvdz pvdz commented Jan 22, 2020

The queue was retained for develop mode which led to the same event handlers being registered over and over again, which led to strange artefacts in the output.

With this change the events are aggressively deregistered from the queue when it finishes or fails.

Regression introduced in #20606

Fixes #20787

The queue was retained for develop mode which led to the same event handlers being registered over and over again, which led to strange artifacts in the output.

With this change the events are aggressively deregistered from the queue when it finishes or fails.

Fixes #20787
@pvdz pvdz requested a review from a team as a code owner January 22, 2020 21:42
Copy link
Contributor

@sidharthachatterjee sidharthachatterjee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's get this in!

@sidharthachatterjee sidharthachatterjee added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Jan 23, 2020
@gatsbybot gatsbybot merged commit 3e6ebad into master Jan 23, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-queue branch January 23, 2020 14:41
@pvdz
Copy link
Contributor Author

pvdz commented Jan 23, 2020

For future reference; processBatch is currently only used in two places (both in query/index); one is for build and the other for develop. We agreed that this is very likely fine to be merged right now and that we might want to take a second look at how the queue is handled in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extra queries slow rebuild on file change when using gatsby-source-filesystem
5 participants