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
fx=function(x) {
if (x%%2==0)
warning(paste("warning on", x))
if (x%%3==0)
stop(paste("error on", x))
x
}
clustermq::Q(fx, 1:10, n_jobs=1)
This fails correctly after 3 calls:
Starting1cores...Running10 calculations (4objs/4.3Kbcommon; 1calls/chunk) ...Error:1/3jobs failed (1warnings).Stopping.
(Error#3) error on 3
(#2) warning on 2
However, if running with n_jobs=0, all calls are evaluated before the error is evaluated:
Running sequentially ('LOCAL') ...Error:3/10jobs failed (5warnings).Stopping.
(Error#3) error on 3
(Error#6) error on 6
(Error#9) error on 9
(#2) warning on 2
(#4) warning on 4
(#6) warning on 6
(#8) warning on 8
(#10) warning on 10
This should probably exit early if fail_on_error=TRUE. Ideally, we would also support a custom error handling function supplied by the user (related: #164)
The text was updated successfully, but these errors were encountered:
Consider the following function
This fails correctly after 3 calls:
However, if running with
n_jobs=0
, all calls are evaluated before the error is evaluated:This should probably exit early if
fail_on_error=TRUE
. Ideally, we would also support a custom error handling function supplied by the user (related: #164)The text was updated successfully, but these errors were encountered: