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-plugin-sharp): create job before async-queue processing #14731

Merged
merged 1 commit into from
Jun 12, 2019

Conversation

wardpeet
Copy link
Contributor

@wardpeet wardpeet commented Jun 12, 2019

Description

Fixes sharp queuing. We use async/queue inside gatsby-plugin-sharp which async adds tasks to the queue. This means jobs are created when the queue is processed not when they are added. This can lead to timing issues when waiting for all jobs to be done.

We move creation of jobs before we add things to the queue.

@wardpeet wardpeet requested a review from a team as a code owner June 12, 2019 10:18
@wardpeet wardpeet changed the title fix(gatsby-plugin-sharp): create job before better-queue fix(gatsby-plugin-sharp): create job before async-queue processing Jun 12, 2019
@wardpeet wardpeet merged commit f566210 into gatsbyjs:master Jun 12, 2019
@wardpeet wardpeet deleted the fix/sharp-queue branch June 12, 2019 11:43
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

Successfully merging this pull request may close these issues.

2 participants