Skip to content

Commit 8615c26

Browse files
authored
Display backtrace from unexpected errors in terminate_all_workers() (#187)
1 parent 1a25fc7 commit 8615c26

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/cluster.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,12 @@ function terminate_all_workers()
12751275
try
12761276
rmprocs(workers(); waitfor=5.0)
12771277
catch _ex
1278-
@warn "Forcibly interrupting busy workers" exception=_ex
1278+
if _ex isa ErrorException
1279+
@warn "Forcibly interrupting busy workers" exception=_ex
1280+
else
1281+
@error "Unexpected error when interrupting busy workers" exception=(_ex, catch_backtrace())
1282+
end
1283+
12791284
# Might be computation bound, interrupt them and try again
12801285
interrupt(workers())
12811286
try

0 commit comments

Comments
 (0)