You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within my backup process, I'm calling the backupUsers process and expect that the file is complete when the promise returned from that function resolves, however the data I can immediately pull from disk is not complete (the stream has not finished writing all of the data to the file).
I see here (src/index.ts#L61) that there is no promise wrapping the callback pattern used for the stream, so there's no way to wrap this function call to ensure that the stream has finished writing all of the data to disk.
I'm seeing this too. From what I see it only exports the first record. @rahulpsd18 Any chance of a fix? Happy to do a PR....
This probably means that anyone that's using this in a lambda to export their users to S3 isn't:
a) doing it right
b) checking their backups are able to be restored
Within my backup process, I'm calling the
backupUsers
process and expect that the file is complete when the promise returned from that function resolves, however the data I can immediately pull from disk is not complete (the stream has not finished writing all of the data to the file).I see here (src/index.ts#L61) that there is no promise wrapping the callback pattern used for the stream, so there's no way to wrap this function call to ensure that the stream has finished writing all of the data to disk.
The following example:
will yield the error:
Because the final bracket (
]
) has not been written to diskThe text was updated successfully, but these errors were encountered: