I was having an issue where, when generating many graphs, I was getting fs errors. Moving the close and parse into the write callback seems to have made the errors go away. I assume there was a race condition where the file was sometimes being closed before the write was complete.
I was having an issue where, when generating many graphs, I was getting fs errors. Moving the close and parse into the write callback seems to have made the errors go away. I assume there was a race condition where the file was sometimes being closed before the write was complete.