File tree 1 file changed +13
-2
lines changed
packages/gatsby-plugin-sharp/src
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,15 @@ exports.scheduleJob = async (
59
59
} )
60
60
61
61
if ( ! isQueued ) {
62
+ // Create image job
63
+ boundActionCreators . createJob (
64
+ {
65
+ id : `processing image ${ job . inputPath } ` ,
66
+ imagesCount : 1 ,
67
+ } ,
68
+ { name : `gatsby-plugin-sharp` }
69
+ )
70
+
62
71
q . push ( cb => {
63
72
runJobs (
64
73
inputFileKey ,
@@ -86,10 +95,12 @@ function runJobs(
86
95
87
96
// Delete the input key from the toProcess list so more jobs can be queued.
88
97
delete toProcess [ inputFileKey ]
89
- boundActionCreators . createJob (
98
+
99
+ // Update job info
100
+ boundActionCreators . setJob (
90
101
{
91
102
id : `processing image ${ job . inputPath } ` ,
92
- imagesCount : _ . values ( toProcess [ inputFileKey ] ) . length ,
103
+ imagesCount : jobs . length ,
93
104
} ,
94
105
{ name : `gatsby-plugin-sharp` }
95
106
)
You can’t perform that action at this time.
0 commit comments