Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/cluster.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,12 @@ function terminate_all_workers()
try
rmprocs(workers(); waitfor=5.0)
catch _ex
@warn "Forcibly interrupting busy workers" exception=_ex
if _ex isa ErrorException
@warn "Forcibly interrupting busy workers" exception=_ex
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we show the backtrace in all cases?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about that, but I'd lean against it because rmprocs() timing out is semi-expected and I don't think we want to display a full stacktrace for it.

else
@error "Unexpected error when interrupting busy workers" exception=(_ex, catch_backtrace())
end

# Might be computation bound, interrupt them and try again
interrupt(workers())
try
Expand Down
Loading