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 see warnings like "In selectChildren(ac[!fin], -1): cannot wait for child 16782 as it does not exist" when I invoke mclapply() before cleaning up the workers. In drake, I was hoping to be able to use mclapply() while clustermq workers are still up, but it is not such a loss. Does it have something to do with the way clustermq needs to change the SIGCHLD handler?
options(clustermq.scheduler="multicore")
w<-clustermq::workers(8)
out<-clustermq::Q(1:2, fun=function(x) x*2, workers=w)
parallel::mclapply(1:2, sqrt, mc.cores=2)
w$cleanup() # Warnings go away if I clean up before calling mclapply().
The text was updated successfully, but these errors were encountered:
p=parallel::mcparallel({ Sys.sleep(1) })
# parallel::mccollect(p) # uncomment and warnings go awayparallel::mclapply(1:2, sqrt, mc.cores=2)
# Warning messages:# 1: In selectChildren(ac[!fin], -1) :# cannot wait for child 18305 as it does not exist# (repeats a couple of times...)
As far as I can tell, this may be a bug in R which was introduced in 3.5.0 (where CI also started reporting these warnings with no changes to clustermq). They do not affect function, so you should be safe to suppress them; or wait for the supposed fix to be merged.
I see warnings like "In selectChildren(ac[!fin], -1): cannot wait for child 16782 as it does not exist" when I invoke
mclapply()
before cleaning up the workers. Indrake
, I was hoping to be able to usemclapply()
whileclustermq
workers are still up, but it is not such a loss. Does it have something to do with the wayclustermq
needs to change theSIGCHLD
handler?The text was updated successfully, but these errors were encountered: