We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a93c71d commit 98f22e7Copy full SHA for 98f22e7
packages/gatsby/src/commands/build.ts
@@ -296,6 +296,10 @@ module.exports = async function build(program: IBuildArgs): Promise<void> {
296
})
297
postBuildActivityTimer.end()
298
299
+ // Wait for any jobs that were started in onPostBuild
300
+ // This could occur due to queries being run which invoke sharp for instance
301
+ await waitUntilAllJobsComplete()
302
+
303
// Make sure we saved the latest state so we have all jobs cached
304
await db.saveState()
305
0 commit comments