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
I'm currently running a custom Jupyter notebook server within a Docker container. In this server there is code that executes a NodeJS script one or more times which launches an instance of headless chrome, extracts some information from the DOM of a page that instance of headless chrome points to, and then writes that information to a file in a temporary directory using fs.writeFileSync from the fs module. When this script is executed multiple times in parallel sometimes the fs.writeFileSync does not seem to actually write the file to disk even though there are no errors thrown from the script. For example, when the script is executed six times in parallel on my Docker system one NodeJS process out of the six I launched will fail to write the file to disk. Additionally, I know that the file is written to a unique path with each execution of the script and using the asynchronous version of writeFile does not work.
Also, it's important to note that the file does not exist before this call is made.
I'm currently running a custom Jupyter notebook server within a Docker container. In this server there is code that executes a NodeJS script one or more times which launches an instance of headless chrome, extracts some information from the DOM of a page that instance of headless chrome points to, and then writes that information to a file in a temporary directory using
fs.writeFileSyncfrom the fs module. When this script is executed multiple times in parallel sometimes thefs.writeFileSyncdoes not seem to actually write the file to disk even though there are no errors thrown from the script. For example, when the script is executed six times in parallel on my Docker system one NodeJS process out of the six I launched will fail to write the file to disk. Additionally, I know that the file is written to a unique path with each execution of the script and using the asynchronous version ofwriteFiledoes not work.Also, it's important to note that the file does not exist before this call is made.
Any ideas why the file write my not occur?