-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong order of arguments to sprintf in reporting connection failures #95
Comments
HenrikBengtsson
added a commit
that referenced
this issue
Jan 4, 2023
…essage, or an error on incorrect printf arguments [#95]
Thank you. Two reproducible examples with different outcomes: > cl <- parallelly::makeClusterPSOCK(2L, rscript_startup = quote(Sys.sleep(6.0)), connectTimeout = 0.0)
Error in parallelly::makeClusterPSOCK(2L, rscript_startup = quote(Sys.sleep(6)), :
Cluster setup failed (connectTimeout=2.0 seconds). 5 of 2 workers failed to connect. and > cl <- parallelly::makeClusterPSOCK(2L, rscript_startup = quote(Sys.sleep(6.0)), connectTimeout = 0.1)
Error in sprintf(ngettext(failed, "Cluster setup failed (connectTimeout=%.1f seconds). %d worker of %d failed to connect.", :
invalid format '%d'; use format %f, %e, %g or %a for numeric objects Fixed in commit 0e94e25. |
Thank you for taking a look so quickly! |
HenrikBengtsson
added a commit
that referenced
this issue
Jan 4, 2023
HenrikBengtsson
added a commit
that referenced
this issue
Jan 4, 2023
HenrikBengtsson
added a commit
that referenced
this issue
Jan 4, 2023
Fixed version now on CRAN |
Thanks again for taking a look so quickly! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here:
parallelly/R/makeClusterPSOCK.R
Lines 260 to 263 in cb62392
I believe
connectTimeout + 5
should be coming first.The text was updated successfully, but these errors were encountered: