Closed guillaumepalayer closed 8 years ago
Travis CI build passed if node --version 0.10.38
@andismith Any chance of merging this in? I had the same issue as @guillaumepalayer and this fixed it for me too. (I've over 5,000 images.)
@guillaumepalayer This should work for Node 0.8, too.
(setImmediate || process.nextTick)(callback);
(Though I haven't tried it :smile: )
@benurb Thank you for the trick. I will try that soon.
When you have a few thousands files and you run the option task
newFilesOnly
, an error occursMaximum call stack size exceeded
. Fix this issue by scheduling the "immediate" execution of callback after I/O events callbacks and beforesetTimeout
andsetInterval
— More info onsetImmediate
function here: http://nodejs.org/api/timers.html#timers_setimmediate_callback_arg