Closed mhtess closed 7 years ago
This has been happening to me quite a bit, too (although I'm not running multiple chains...)
@hawkrobe and I discussed today that this is probably due to our dumb trigger for when to read from file, which is some number of seconds after the output file was created. It seems like we may want to address this and #22 in the same swoop, possibly by replacing our system2
call with something from the subprocess
package
alternatively, we can create a shell script wrapper for the system2
call, which runs webppl and then writes a file to signal the end.
Related to my comment on issue #45, I believe the issue is that we're currently using the asynchronous versions of fs
functions: in particular, fs.writeFile()
and fs.rename()
are non-blocking, so that the finally
block where the finish file is written doesn't wait for the output file to be written or renamed.
I propose we switch to the synchronous versions since we're not really getting anything from the asynchrony
Closed by PR #52
Sometimes rwebppl is returning a
NULL
object to R. This may be due to multiple chains finishing at the same time.